Ask Experts Questions for FREE Help !
Ask
    wintel's Avatar
    wintel Posts: 1, Reputation: 1
    New Member
     
    #1

    Jun 26, 2008, 06:29 AM
    Serial Number Label
    I am trying to create a Serial Number program in Excel. I have the template designed and it is a 1 page document. I would like to type in the starting serial number and click File - Print and change the quantity to the number of serial numbers that I need. As each page prints I need the serial number on each page to increase by 1. Kind of like the Page number increasing as each page prints. Is this possible?:confused:
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #2

    Jun 26, 2008, 06:42 AM
    Set a formula to reference the previous cell and add one to it.
    JBeaucaire's Avatar
    JBeaucaire Posts: 5,426, Reputation: 997
    Software Expert
     
    #3

    Jun 26, 2008, 11:17 AM
    Let me fiddle around a little and see if I can get that to work... nice idea!
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #4

    Jun 26, 2008, 11:21 AM
    Note: Please do not use e-mails or PMS for follow-up. All follow-up should be posted to this thread.
    JBeaucaire's Avatar
    JBeaucaire Posts: 5,426, Reputation: 997
    Software Expert
     
    #5

    Jun 27, 2008, 07:29 AM
    I think the only way to do it is with a macro.

    TOOLS > MACRO > MACROS

    Enter a new macro title PRINTNUMBERS, then click CREATE

    The macro window will appear, paste in this code:
    Code:
    Sub PRINTNUMBERS()
    For n = 1 To 30
    ActiveWindow.SelectedSheets.PrintOut Copies:=1
    Range("A1").Value = Range("A1").Value + 1
    Next n
    End Sub
    This macro assumes your serial number is in cell A1. Adjust that to the correct cell.

    This macro will print 30 serial numbers. Edit the macro to adjust for the number you want to print out.

    Voilą!
    JBeaucaire's Avatar
    JBeaucaire Posts: 5,426, Reputation: 997
    Software Expert
     
    #6

    Jun 27, 2008, 03:11 PM
    Here is the best solution. Running this macro ASKS you how many serial numbers you need. Then it prints the sheet, increasing the serial number by 1 each time.

    Again, just update the cell reference A1 to match your correct serial number cell. Oh, and be sure to save the document each time.
    Code:
    Sub test()
    a = Application.InputBox("Enter No. :", , , , , , , 1)
    If a <= 1 Then
    MsgBox "Must be more than 1"
    Exit Sub
    End If
    For n = 1 To a
    ActiveWindow.SelectedSheets.PrintOut Copies:=1
    Range("A1").Value = Range("A1").Value + 1
    Next n
    End Sub

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

$5 bill red serial number [ 2 Answers ]

What do red serial numbers mean and are they more valuable?

Mobile home serial number [ 1 Answers ]

I am selling a 1 bedroom mobile home. Buyer wants a title insurance. ID on home required. No ID tag on unit found. Only tag is seal on entrance door with the letters MGVV CERTIFIED MHMA/TCA REGISTERED 2614411 As a last resort I am...

Celing fan serial number [ 1 Answers ]

Where do I find a serial number on a harbor breeze celing fan?

Lost Serial Number [ 4 Answers ]

I have a Toshiba Laptop, and I'm trying to find out how much time I have left on my warranty (I want to get the USB port replaced - it's broken). I called Toshiba and of course they asked for the S/N. The OEM sticker on the bottom of the machine has been rubbed clean - probably from using it as...


View more questions Search