|
Find the little Excel workbook icon just to the left of the File menu option, near the upper left corner of your workbook window. Right click on that icon, left click on View Code, and paste the following code into the large white area that is the Workbook module.
'''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''
Sub Workbook_Open()
Worksheets("Sheet1").Range("A1").Value = Worksheets("Sheet1").Range("A1").Value + 1
End Sub
'''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''
Modify for sheet tab name and the cell you want to have your invoice number be incremented.
To return to the worksheet, press Alt+Q.
__________________
Tom Urtis
|