Ok so I have a macro that creates a new set of sheets off of a template sheet within the workbook. I have an existing sheet that needs to pull data off of the new sheets. How can I add to this macro so that it auto fills the statistics sheet with the proper references on the newly created sheets (they are named by user input so they could be anything). The existing macro I have is:
Sub CreateSheetsFromAList()
Dim MyCell As Range, MyRange As Range
Set MyRange = Sheets("Instructions").Range("M5")
Set MyRange = Range(MyRange, MyRange.End(xlDown))
For Each MyCell In MyRange
Sheets.Add After:=Sheets(Sheets.Count) 'creates a new worksheet
Sheets(Sheets.Count).Name = MyCell.Value ' renames the new worksheet
Worksheets("Template").Cells.Copy ActiveSheet.Range("A1") 'copies data from "Template"
Next MyCell
MsgBox ("Done!")
End Sub
I would like the statistics page refresh to happen after all the new sheets are created.
Thanks for your help!!