Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello
Consider a worksheet called MasterList and a second worksheet called Level_TEMPLATE (the name on the tab). MasterList has a range from B10 to B20 listing TAB names (Level_6a, Level_8d, Level_4d, ...This list may also contain blanks.) Now I want to generate a new worksheet identical to the Level_TEMPLATE for each TAB name listed in Worksheets("MasterList").Range("B10:B20"). I would end up with new worksheets called Level_6a, Level_8d, etc. Of course I could do this manually, but I'm trying to automate the process. I would really appreciate assistance with this. I've never tried this before. TQ dorre |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this:
Sub MKSheet() Dim s(20) As String Sheets("MasterList").Select For i = 1 To 20 s(i) = Cells(i, 1).Value Next For i = 1 To 20 Sheets("Level_TEMPLATE").Copy Befo=Sheets(1) Sheets("Level_TEMPLATE (2)").Select Sheets("Level_TEMPLATE (2)").Name = s(i) Next End Sub After removing blanks and duplicates from the list in MasterList. -- Gary's Student "dorre" wrote: Hello Consider a worksheet called MasterList and a second worksheet called Level_TEMPLATE (the name on the tab). MasterList has a range from B10 to B20 listing TAB names (Level_6a, Level_8d, Level_4d, ...This list may also contain blanks.) Now I want to generate a new worksheet identical to the Level_TEMPLATE for each TAB name listed in Worksheets("MasterList").Range("B10:B20"). I would end up with new worksheets called Level_6a, Level_8d, etc. Of course I could do this manually, but I'm trying to automate the process. I would really appreciate assistance with this. I've never tried this before. TQ dorre |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Making changes automatically on multiple worksheets | Excel Discussion (Misc queries) | |||
Follow up from Bob Phillips' Answer on Programatically Making Chec | Excel Programming | |||
Insert code into worksheets programatically?? | Excel Programming | |||
programatically accessing Macros in worksheets | Excel Programming | |||
Programatically adding worksheets to a spreadsheet | Excel Programming |