Hi,
Currently I am using the below code to generate new invoice number like A2B-1001 where A2B-1000 is already put in cell F2. When i trigger this macro it clears certain cells and changes the value in F2 to A2B-1001.
This is done with the following line in the attached code:
Range("F2").Value = Left(Range("F2").Value, 4) & 1 + Mid(Range("F2").Value, 5, 4)
But I need the invoice number to be like YYMMDDNNN where NNN will change like 001, 002, 003 etc invoices made on same date.
This forum is of great help & I hope that I will not be disappointed.
Thanks in advance.
Bookmarks