Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default adding sheets based on input

I have a template sheet that I want to take and build a
workbook with. I want to ask the user how many sheets they
want to make. Each sheet is for a different company.
Sometimes there are 12 companies and sometimes it is 16 or
anything in between. I want the user to identify this.
Then I want the template sheet to make this many copies of
it. Then I want it to ask them what they want to name the
sheets. Any help would be great. Email me with any
questions.

Thanks,
David
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default adding sheets based on input

David,

Here's a short little macro that might do what your looking for.

I set it up as follows, on a separate sheet (not the template) make a list
of the sheet names (no numbering necessary), Select the range containing the
new sheet names and run the following

Sub CopySheets()
For Each Cell In Selection
Sheets("Template").Copy After:=Sheets("Template")
ActiveSheet.Name = Cell.Value
Next
End Sub

Dan E

"david" wrote in message
...
I have a template sheet that I want to take and build a
workbook with. I want to ask the user how many sheets they
want to make. Each sheet is for a different company.
Sometimes there are 12 companies and sometimes it is 16 or
anything in between. I want the user to identify this.
Then I want the template sheet to make this many copies of
it. Then I want it to ask them what they want to name the
sheets. Any help would be great. Email me with any
questions.

Thanks,
David



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
How to input pictures automatically based on cell input? bsharp Excel Worksheet Functions 9 May 30th 09 07:16 AM
run macro with input msg based on cell input Janelle S Excel Discussion (Misc queries) 0 January 20th 08 05:23 AM
adding sheets based upon a template sheet [email protected] Excel Worksheet Functions 1 December 7th 07 05:03 PM
pull data from multiple sheets based on input Patti Excel Worksheet Functions 3 February 27th 07 09:31 PM
populating sheets based on data from parent sheets seve Excel Discussion (Misc queries) 2 January 15th 05 09:22 PM


All times are GMT +1. The time now is 02:06 PM.

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

About Us

"It's about Microsoft Excel"