This is my first post and this website forum has been such an incredible help! Looking for some assistance on copying a template worksheet and renaming the copied worksheets from a list from a range from another sheet. If the worksheet name already exists, it will create a copy stating "Copy" at the end.
So far I was able to create the copies from a list but it did not stop after cell B50 (started from B3).....
Thank you all for the help already in the past (been look up fan) and all the help in the future!
So far I was able to create the copies from a list but it did not stop after cell B50 (started from B3).....
- Sh1 = Template sheet is named "xTemplate"
- Sh2 = Sheet with the running list of names is the sheet named "xRunning List"
- The Cell Range from the sheet named "xRunning List" is between Rows B3 to B50.
- There are some sheets already created that is in between rows B3 to B50 so I was hoping if there is already a sheet with that name from these rows, it would create a duplicate reading "Copy" at the end of the new copied sheet.
VBA Code:
Sub makeSheets()
Dim sh1 As Worksheet, sh2 As Worksheet, c As Range
Set sh1 = Sheets("xTemplate")
Set sh2 = Sheets("xRunning List")
For Each c In sh2.Range("B3", sh2.Cells(Rows.Count, 2).End(xlUp))
sh1.Copy After:=Sheets(Sheets.Count)
ActiveSheet.Name = c.Value
Next
End Sub
Thank you all for the help already in the past (been look up fan) and all the help in the future!