J
John
I am trying to name a new worksheet that is automatically created using the
value of a certain field i.e. Ll2 and then adding _GJRL to the end. I've
worked out how to do this and typically the new worksheet name is
April'04_GJRL.
strSheetName = Worksheets(ActiveSheet.Name).Range("l2")
Sheets.Add
ActiveSheet.Name = strSheetName & "_GJRL"
ActiveSheet.Select
ActiveSheet.Move After:=Sheets("Template")
However there maybe several "GJRL" in the month and as I want to save each
worksheet I have to manually rename each with something like April'04_GJRL#1
etc etc.
Is there any way I can write code to increase the name automatically eg.
April'04_GJRL#1 then April'04_GJRL#2 etc etc?
Thanks
John
value of a certain field i.e. Ll2 and then adding _GJRL to the end. I've
worked out how to do this and typically the new worksheet name is
April'04_GJRL.
strSheetName = Worksheets(ActiveSheet.Name).Range("l2")
Sheets.Add
ActiveSheet.Name = strSheetName & "_GJRL"
ActiveSheet.Select
ActiveSheet.Move After:=Sheets("Template")
However there maybe several "GJRL" in the month and as I want to save each
worksheet I have to manually rename each with something like April'04_GJRL#1
etc etc.
Is there any way I can write code to increase the name automatically eg.
April'04_GJRL#1 then April'04_GJRL#2 etc etc?
Thanks
John