+ Reply to Thread
Results 1 to 5 of 5

Sequential Numbering of Invoices when Printing

Hybrid View

WarrenC Sequential Numbering of... 02-22-2007, 07:49 PM
oldchippy May be this link will help? ... 02-23-2007, 07:14 AM
WarrenC found some vb code on the net... 02-23-2007, 12:41 PM
jkhayes Share an example? 11-29-2007, 10:04 PM
shg Warren, please wrap the code... 11-29-2007, 10:14 PM
  1. #1
    Registered User
    Join Date
    06-17-2006
    Posts
    28

    Sequential Numbering of Invoices when Printing

    I am building an invoice and I need to sequentially number them as they print. I was thinking of using the page number feature, but I cant figure out how to get it into a specific cell. So if I decide to print a hundred invoices, they come off the printer No 1, No 2, No 3 etc. Again, I need this in a specific cell. Can this be done???

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    May be this link will help?

    http://www.mcgimpsey.com/excel/udfs/sequentialnums.html
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    06-17-2006
    Posts
    28
    found some vb code on the net and got it working. Thanks to all
    Private Sub Workbook_BeforePrint(Cancel As Boolean)
    If ActiveSheet.Name = "Summary" Then Range("A1").Value = Range("A1").Value + 1
    End Sub
    
    Private Sub Workbook_Open()
    
    End Sub
    As long as your sheet is called Summary, the numbers in cell A1 change everytime you print (or print preview)
    Last edited by Leith Ross; 01-10-2011 at 04:56 PM. Reason: Added Code Tags

  4. #4
    Registered User
    Join Date
    10-28-2007
    Posts
    1

    Share an example?

    How about sharing an example of what it looks like?

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Warren, please wrap the code in your post with code tags. If you don't know how, please read the forum rules.

+ 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