Hi
I would like to find a way to have my invoice workbook automatically rename using 2 different cells, one of which is an invoice number in cell N6 generated using this code:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Range("N6").Value = Range("N6").Value + 1
End Sub
the other being text in cell N11. The renamed workbook should look like "Inv N6-N11.xls"
Its probably best if this happens when saving the workbook.
Thanks in advance
I would like to find a way to have my invoice workbook automatically rename using 2 different cells, one of which is an invoice number in cell N6 generated using this code:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Range("N6").Value = Range("N6").Value + 1
End Sub
the other being text in cell N11. The renamed workbook should look like "Inv N6-N11.xls"
Its probably best if this happens when saving the workbook.
Thanks in advance