Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
thecashman
 
Posts: n/a
Default Invoice Numbering

How can I set up automatic sequential invoice numbering across multiple
worksheets but in the same workbood? I have all my customers set up on
individual worksheets and would like to assign an invoice number when I
print. Then would like the next time I print possibly a different worksheet
to print the next number up from the previous number that was assigned to the
last invoice.
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Take a look at

http://www.mcgimpsey.com/excel/sequentialnums.html

In article ,
"thecashman" wrote:

How can I set up automatic sequential invoice numbering across multiple
worksheets but in the same workbood? I have all my customers set up on
individual worksheets and would like to assign an invoice number when I
print. Then would like the next time I print possibly a different worksheet
to print the next number up from the previous number that was assigned to the
last invoice.

  #3   Report Post  
thecashman
 
Posts: n/a
Default

Does this work considering my worksheets are not templates?

"JE McGimpsey" wrote:

Take a look at

http://www.mcgimpsey.com/excel/sequentialnums.html

In article ,
"thecashman" wrote:

How can I set up automatic sequential invoice numbering across multiple
worksheets but in the same workbood? I have all my customers set up on
individual worksheets and would like to assign an invoice number when I
print. Then would like the next time I print possibly a different worksheet
to print the next number up from the previous number that was assigned to the
last invoice.


  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

It will if you use the Workbook_BeforePrint event. For example:

Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim ws As Worksheet
Cancel = True
Application.EnableEvents = False
For Each ws In ActiveWindow.SelectedSheets
ws.Range("B1").Value = NextSeqNum
ws.PrintOut
Next ws
Application.EnableEvents = True
End Sub

In article ,
"thecashman" wrote:

Does this work considering my worksheets are not templates?

  #5   Report Post  
thecashman
 
Posts: n/a
Default

OK, I'm not sure what is going on.....I would like to start at a value of 1
and then get the next sequential number to print in cell G3 across all
worksheets. Value to change only when an invoice is printed. But right now
with the number 1 starting in G3 and when I hit print...the value is deleted
in that worksheet only and it prints nothing. Actually its deleting any
value in that cell. Where do I put the starting number in the VBE. I'm
fairly new to this area of excel..and I only have myself to teach me..Thanks
for any help you can provide me. Or if you could provide me with the exact
macro I should insert that would be great. Thanks again

"JE McGimpsey" wrote:

It will if you use the Workbook_BeforePrint event. For example:

Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim ws As Worksheet
Cancel = True
Application.EnableEvents = False
For Each ws In ActiveWindow.SelectedSheets
ws.Range("B1").Value = NextSeqNum
ws.PrintOut
Next ws
Application.EnableEvents = True
End Sub

In article ,
"thecashman" wrote:

Does this work considering my worksheets are not templates?




  #6   Report Post  
JE McGimpsey
 
Posts: n/a
Default

The code I gave you was based on your also using the NextSeqNum macro
(placed in a regular code module), as in the example on my web page.

You can get a good introduction to macros at

http://www.mvps.org/dmcritchie/excel/getstarted.htm


In article ,
"thecashman" wrote:

OK, I'm not sure what is going on.....I would like to start at a value of 1
and then get the next sequential number to print in cell G3 across all
worksheets. Value to change only when an invoice is printed. But right now
with the number 1 starting in G3 and when I hit print...the value is deleted
in that worksheet only and it prints nothing. Actually its deleting any
value in that cell. Where do I put the starting number in the VBE. I'm
fairly new to this area of excel..and I only have myself to teach me..Thanks
for any help you can provide me. Or if you could provide me with the exact
macro I should insert that would be great. Thanks again

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
In Excel, how do I setup sequential numbering on an invoice? Kostumeroom Excel Worksheet Functions 2 August 20th 05 12:51 AM
How do I set up an automated numbering system For my "Invoice Num Frank Medina & Associates Excel Worksheet Functions 1 August 14th 05 04:23 PM
Master invoice number Christopher M. Excel Worksheet Functions 0 July 24th 05 04:26 PM
Invoice Numbering Kevin Excel Worksheet Functions 1 November 16th 04 03:59 PM
Invoice Numbering Kevin Mayfield Excel Worksheet Functions 0 November 16th 04 02:49 PM


All times are GMT +1. The time now is 11:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"