Forum Discussion
VickieMoody777
Jun 10, 2021Copper Contributor
How to rename the worksheet tabs
Hi, I need to create a macro to rename the existing worksheets with the date values on the cells A4:A26. I know there is a way through VBA coding, but I am struggling on how to create it. I ...
- Jun 11, 2021
If you save the workbook with the original sheet names Sheet1, Sheet2 etc. as a macro-enabled template (.xltm), you can create a new workbook from the template each month.
(You could also save the workbook under a new name at the end of the macro, so that the original remains unchanged)
VickieMoody777
Jun 11, 2021Copper Contributor
Hello HansVogelaar
Ok, I am not sure what is happening, but now all the sheets are naming not used. Is it because of the For i = 1 To 23 command? What am i doing wrong?
Ok, I am not sure what is happening, but now all the sheets are naming not used. Is it because of the For i = 1 To 23 command? What am i doing wrong?
HansVogelaar
Jun 11, 2021MVP
That will happen if the code tries to assign a name that has already been used for another sheet.