P
Pat
Private Sub cmdAdd_Click()
Sheets("Sheet1").Select
Sheets.Add
End Sub
The above code will create a copy of Sheet1 by increments of 1.
I want to modify the code and name the sheet based on a value in A1. For
example;
A1 = Joe1
when the code is run it names the sheet Joe2
run the code again it names it Joe3
etc
Change A1 to Mary1
when the code is run it names the sheet Mary2
run the code again it names it Mary3
etc
Change A1 to ()1
etc
If Joe1 is in A1 again
when the code is run it names the sheet Joe4
Anyone know if this is possible?
Thanks
Pat
Sheets("Sheet1").Select
Sheets.Add
End Sub
The above code will create a copy of Sheet1 by increments of 1.
I want to modify the code and name the sheet based on a value in A1. For
example;
A1 = Joe1
when the code is run it names the sheet Joe2
run the code again it names it Joe3
etc
Change A1 to Mary1
when the code is run it names the sheet Mary2
run the code again it names it Mary3
etc
Change A1 to ()1
etc
If Joe1 is in A1 again
when the code is run it names the sheet Joe4
Anyone know if this is possible?
Thanks
Pat
