Automate Insert Worksheet & Name

B

Benjamin

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
 
G

Gord Dibben

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
 
G

Gord Dibben

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


Gord
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top