Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Programatically making worksheets

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Programatically making worksheets

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making changes automatically on multiple worksheets aaorbin Excel Discussion (Misc queries) 2 February 24th 09 05:11 PM
Follow up from Bob Phillips' Answer on Programatically Making Chec David Excel Programming 2 May 13th 05 04:10 PM
Insert code into worksheets programatically?? Caro-Kann Defence[_2_] Excel Programming 3 April 6th 05 02:25 PM
programatically accessing Macros in worksheets Patrick[_8_] Excel Programming 1 April 15th 04 08:41 PM
Programatically adding worksheets to a spreadsheet Scott Lyon Excel Programming 4 August 8th 03 02:54 PM


All times are GMT +1. The time now is 12:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"