I'm writing a macro that will create a large number of worksheets. I have one master worksheet with some data on it and I want to copy a range from the master to each of the new sheets. I'm thinking the following:
Dim myRange As Range
myRange = Sheets("Master").Range("A5:A100")
For k = 1 to 100
Set myWS = Worksheets.Add
myWSName = Sheets("Pivot").Cells(4, Col).Value
myWS.Name = myWSName
myWS.Range("A5:A100") = myRange
Next k
Wil this work? Is there a faster way to do it? Thanks.
Dim myRange As Range
myRange = Sheets("Master").Range("A5:A100")
For k = 1 to 100
Set myWS = Worksheets.Add
myWSName = Sheets("Pivot").Cells(4, Col).Value
myWS.Name = myWSName
myWS.Range("A5:A100") = myRange
Next k
Wil this work? Is there a faster way to do it? Thanks.