I make an invoice template but now I would like to know how I can make
the Invoice Number to be increment automaticaly when I open my template...
André, Thank's for anyone help...
Put this macro in the ThisWorkbook code module:
Private Sub Workbook_Open()
Range("A1") = Range("A1") + 1 'or wherever the invoice no. is
End Sub
I assume you are using the term "template" generically and that this is
not a real template with an XLT extension. If it is, you would store the
most recent invoice number in the Windows Registry using the SaveSetting
statement.
--
Regards,
Vasant.
**No direct emails please--keep discussion in newsgroup.**
"André Lachapelle" <andre.la...@videotron.ca> wrote in message
news:IED69.21302$gY3.5...@weber.videotron.net...