Enzo_Matrix
Board Regular
- Joined
- Jan 9, 2018
- Messages
- 113
I am using this code:
From my understanding it should change the copied sheet name from 'Mar' to 'Apr'. Instead it changes it from 'Mar' to 'Mar (2)'. Can someone please help me refine my code so it changes the sheets name to the following month.
Code:
Sub NewMonth()' Making a new sheet with the month name changing
Sheets(Format(Date, "mmm")).Copy Before:=Sheets(Sheets.Count)
ActiveSheet.Name = Format(Date + 1, "mmm")
Range("A2").Select
End Sub
From my understanding it should change the copied sheet name from 'Mar' to 'Apr'. Instead it changes it from 'Mar' to 'Mar (2)'. Can someone please help me refine my code so it changes the sheets name to the following month.