+ Reply to Thread
Results 1 to 4 of 4

Print with Sequential Numbering

  1. #1
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Print with Sequential Numbering

    I found a thread here:
    http://www.excelforum.com/excel-general/590510-sequential-numbering-of-invoices-when-printing.html

    ...with a macro to print and have a number on the worksheet change sequentially each time the sheet is printed.

    This is exactly what I need for the macro to do, but I can't seem to figure out how to get it to work for me. I need cell "S1" to start at 4000 and change by one each time it is printed.

    The worksheet is currently being used as just a blank form that is hand written on.(I will build a userform to fill in and save as pdf at a later date)

    I copied and edited the macro(originally written by royUK) and assigned it to a textbox on the right of the worksheet. See attached

    Any help getting the macro to run successfully or help explaining what I did wrong is appreciated.

    EDIT: currently using the print preview to save our trees until I can get the macro to run correctly

    EDIT#2:
    Here is the macro code that I was trying to use:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by jwright650; 01-10-2011 at 05:47 PM. Reason: added comment
    Life is like a roll of toilet paper. The closer it gets to the end, the faster it goes.
    John Wright

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Help with Macro to Print with Sequential Numbering

    Hello John,

    Here is the updated macro.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: Help with Macro to Print with Sequential Numbering

    Ahhhhh, Thanks Leith!

    ...dang... I tried that and must have had something wrong, so I changed it back.
    Last edited by jwright650; 01-10-2011 at 05:49 PM. Reason: mis-spelled Leith's name...sorry Leith

  4. #4
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: Print with Sequential Numbering

    Works great....I just have to remember to subtract one number from the actual starting number...ie to start printing at 4000, enter 3999...no biggie, I can deal with that just fine.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1