Macro to Create Worksheets Based on Cell Values

L

Lilbit

I have cell values created through a filter. The cells are A75-A125. I
need a macro that creates a worksheet for each value. Does such a macro
exist and if the answer is yes, how do I get my hands on it? Thanks!!
 
A

Adilson Soledade

To run this code, you must frist select the sheets taht contais the values
used to name the new worksheets

Sub Create_Worksheets()
Dim i As Integer
Dim WSheet As Worksheet

Set WSheet = ActiveSheet
For i = 75 To 125
Worksheets.Add After:=Sheets(ThisWorkbook.Sheets.Count)
ActiveSheet.Name = WSheet.Cells(i, 1)
Next i
WSheet.Select
End Sub
 

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