Hi All
I'm using the code below to create template copies, how can i adapt it to avoid duplicates please and only create unique worksheets.
Cheers
Paul
I'm using the code below to create template copies, how can i adapt it to avoid duplicates please and only create unique worksheets.
Code:
Sub NewDays()
Dim i As Long, LastRow As Long, wksht As Worksheet
Sheets("Tides").Activate
LastRow = Cells(Rows.Count, 1).End(xlUp).Row
For i = 1 To LastRow
Sheets("Template").Copy After:=Sheets(i)
ActiveSheet.Name = Cells(i, 1).Text
Next i
End Sub
Cheers
Paul