Hello ALL,
I hope you can help me with this other question I have.
Using a macro, I am able to create worksheets which are named according to the following piece of code:
Sub Addsheets()
Dim LR As Long, i As Long
With Sheets("Sheet2")
LR = .Range("A" & Rows.Count).End(xlUp).Row
For i = 1 To LR
Worksheets.Add(After:=Worksheets(Worksheets.Count)).Name = .Range("A" & i).Value
Next i
End With
End Sub
My question is: what do I need to do in order to have a certain template that I created, open when I run the above code?
Any help would be greatly appreciated
I hope you can help me with this other question I have.
Using a macro, I am able to create worksheets which are named according to the following piece of code:
Sub Addsheets()
Dim LR As Long, i As Long
With Sheets("Sheet2")
LR = .Range("A" & Rows.Count).End(xlUp).Row
For i = 1 To LR
Worksheets.Add(After:=Worksheets(Worksheets.Count)).Name = .Range("A" & i).Value
Next i
End With
End Sub
My question is: what do I need to do in order to have a certain template that I created, open when I run the above code?
Any help would be greatly appreciated