How can I use a variable to assign a new worksheet a new name or rename it? I have a list in col A of 200 names that need to be assigned to 200 new worksheets. Using a For Each loop with the value of each cell in col A being assigned as a new sheet name is as simple as I can desribe it. The code below is as far as I have gotten. "x" just puts the letter x in the sheet name. I want a varible routine to grab each cell value and assign it to a new worksheet. Can somebody help me???
Private Sub CommandButton2_Click()
For Each c In Worksheets("All Wells").Range("A1:A169").Cells
If c.Value = "" Then
Exit For
Else
c.Rows.Select
ActiveCell.Select
Selection.Copy
Set NewSheet = Worksheets.Add
NewSheet.Name = "x"
End If
Next
End Sub[/b]
Private Sub CommandButton2_Click()
For Each c In Worksheets("All Wells").Range("A1:A169").Cells
If c.Value = "" Then
Exit For
Else
c.Rows.Select
ActiveCell.Select
Selection.Copy
Set NewSheet = Worksheets.Add
NewSheet.Name = "x"
End If
Next
End Sub[/b]