Hi I am trying to copy a worksheet every month from a master using a macro in VB i have managed to copy and rename the new worksheet but get an error when i close and reopen the file because the name exists i am new to VB :) Code i have is
Private Sub Workbook_Open()
Sheets("Master").Visible = True
Sheets("Master").Copy After:=Worksheets(Worksheets.Count)
NewPageName = Format(Date, "MMYY")
ActiveWindow.ActiveSheet.Name = NewPageName
End Sub