Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I have an easy question for someone. I am trying to automatically add a workbook page and copy and master template. I got the formala to make adding the sheet and naming the workbook, but cannot figure out what it takes to copy the template to each of the workbooks. Any thoughts. Here is the code I am currently using. Let's say the template worksheet is labeled "template" Sub Create_Agent_Sheets() Dim MyCell As Range, MyRange As Range Set MyRange = Sheets("Agency Info").Range("a2") Set MyRange = Range(MyRange, MyRange.End(xlDown)) For Each MyCell In MyRange Sheets.Add After:=Sheets(Sheets.Count) Sheets(Sheets.Count).Name = MyCell.Value Next MyCell End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Automatically adding an Add-in | Excel Programming | |||
Adding an AP to a worksheet automatically | Excel Worksheet Functions | |||
Adding Data Automatically | Excel Programming | |||
Why are my formulas not adding up automatically | Excel Worksheet Functions | |||
Automatically adding cells from one worksheet to another | Excel Worksheet Functions |