S
stan
I am keeping track of invoice revisions. .Each new worksheet is copied into
a new workbook. Worksheets are
grouped by worksheet number and renamed as by invoice number using the
following code.:
Public Sub RenameSheet()
NewName = Range("c7").Value & "-" & Range("h4").Value
ActiveSheet.Name = NewName
End Sub
Currently I have users enter a sequential value in h4. Range c7 contains
the invoice number, which must remain the same.
I would like to automate this part. So that it first looks to c7, copies
it, then addes a sequential number in h4, avoiding duplication and starting
with 1.
any help would be most appreciated
a new workbook. Worksheets are
grouped by worksheet number and renamed as by invoice number using the
following code.:
Public Sub RenameSheet()
NewName = Range("c7").Value & "-" & Range("h4").Value
ActiveSheet.Name = NewName
End Sub
Currently I have users enter a sequential value in h4. Range c7 contains
the invoice number, which must remain the same.
I would like to automate this part. So that it first looks to c7, copies
it, then addes a sequential number in h4, avoiding duplication and starting
with 1.
any help would be most appreciated