T
TheHealer
I have an invoice template in which I have added a code that increases
the invoice number by 1 every time it is opened.. however the invoice
has to be overwritten for this to work (or the template) I am new to
all this and am struggling to find out what the heck I am doing here
lol.
I have also inserted a code to empty the contents of the previously
filled in information on the invoice so that it is ready to be filled
out again.. HOWEVER.. this means that even tho I use Save as and save
the invoice as something else when I open that copy .. everything is
reset and the invoice number is incremented just like in the template.
How on earth do I get a working invoice that I can save for future
reference and yet still have the option of opening a blank invoice with
a unique invoice number in it..
This is the only code I have written.. as follows ..
Private Sub Workbook_Open()
Range("l4").Value = Range("l4") + 1
Range("d18:d34,e12:e15,e18:e34,e38,g14:g15,d18:d34,l12:l15,k18:k34").ClearContents
End Sub
Hoping someone can explain in simple terms how to fix my dilemma
the invoice number by 1 every time it is opened.. however the invoice
has to be overwritten for this to work (or the template) I am new to
all this and am struggling to find out what the heck I am doing here
lol.
I have also inserted a code to empty the contents of the previously
filled in information on the invoice so that it is ready to be filled
out again.. HOWEVER.. this means that even tho I use Save as and save
the invoice as something else when I open that copy .. everything is
reset and the invoice number is incremented just like in the template.
How on earth do I get a working invoice that I can save for future
reference and yet still have the option of opening a blank invoice with
a unique invoice number in it..
This is the only code I have written.. as follows ..
Private Sub Workbook_Open()
Range("l4").Value = Range("l4") + 1
Range("d18:d34,e12:e15,e18:e34,e38,g14:g15,d18:d34,l12:l15,k18:k34").ClearContents
End Sub
Hoping someone can explain in simple terms how to fix my dilemma