How do I produce consecutive invoice numbers in Excel?

J

John Z

I am trying to produce consecutive numbering on a bill of sale type
worksheet, Can anyone help me?
 
G

Geoff_L

Is there a particular point of time or 'event' when you want it to increment?
E.g. when you go to print? If so then the incrementation is quite simply
added as part of the code that runs this. Even if you have recorded the
macro, you can simply add as a last line before the 'End Sub':

Range("B2") = Range("B2") + 1

Substitute the range that represents the cell where your invoice number lies.

Alternatively you can attach this code to a button etc.

Helpful? Then click Yes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top