Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 102
Default Automate Insert Worksheet & Name

I have a list of Tab Names. Is there any way to automate the process of
inserting a new worksheet and naming it from the list?

List
A
B
C
D
Etc.

To make Worksheets A, B, C, and D?

thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 125
Default Automate Insert Worksheet & Name

Hi

Had this reply which worked for me

http://www.officekb.com/Uwe/Forum.as...heet-from-list


regards

Benjamin wrote:
I have a list of Tab Names. Is there any way to automate the process of
inserting a new worksheet and naming it from the list?

List
A
B
C
D
Etc.

To make Worksheets A, B, C, and D?

thanks


--
Message posted via http://www.officekb.com

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Automate Insert Worksheet & Name

Sub Add_Sheets22()
Dim rCell As Range
For Each rCell In Range("A1:A10")
With Worksheets.Add(After:=Worksheets(Worksheets.Count) )
.Name = rCell.Value
End With
Next rCell
End Sub

Assumes you are running the macro from the activesheet holding the proposed
names in A1:A10


Gord Dibben MS Excel MVP


On Fri, 25 Apr 2008 10:25:00 -0700, Benjamin
wrote:

I have a list of Tab Names. Is there any way to automate the process of
inserting a new worksheet and naming it from the list?

List
A
B
C
D
Etc.

To make Worksheets A, B, C, and D?

thanks


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Automate Insert Worksheet & Name

I interpreted the request to add("inserting") sheets, not rename existing ones.


Gord

On Fri, 25 Apr 2008 18:46:32 GMT, "BNT1 via OfficeKB.com" <u19326@uwe wrote:

Hi

Had this reply which worked for me

http://www.officekb.com/Uwe/Forum.as...heet-from-list


regards

Benjamin wrote:
I have a list of Tab Names. Is there any way to automate the process of
inserting a new worksheet and naming it from the list?

List
A
B
C
D
Etc.

To make Worksheets A, B, C, and D?

thanks


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
automate row insert to archive tfrentz Excel Worksheet Functions 15 January 25th 07 01:12 PM
Automate new Word file and insert autotext leaftye Excel Discussion (Misc queries) 2 November 7th 06 06:21 PM
How can I automate the saving of a worksheet? maacmaac Excel Discussion (Misc queries) 1 September 8th 05 04:09 AM
How can I automate the naming of worksheet tabs? TJ Excel Discussion (Misc queries) 7 September 8th 05 12:01 AM
Automate worksheet copy Marco Excel Discussion (Misc queries) 6 August 1st 05 12:11 PM


All times are GMT +1. The time now is 10:27 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"