unique invoice number
Posted by Espey on December 06, 2001 9:04 PM
1)In the following macro, how does the prior invoice number get updated to cell Z1?
2)Is there a way to the invoice number to skip every 10th invoice number assigned
Sub GetNextInvoiceNumber()
LastInv = Worksheets("Menu").Range("Z1").value
NextInv = LastInv + 1
Worksheets("Invoice").Range("H2").value = NextInv
Worksheets("Menu").Range("Z1").value = NextInv
End Sub
Thank you in advance