G
Guest
Hi,
I have the following code which adds lots of sheets to a workbook:
Sub AddSheets()
Dim iNoSheets As Integer
Dim x As Integer
iNoSheets = Application.InputBox("How many sheets to add?", "Add Sheets",
10, , , , 1)
For x = 1 To iNoSheets
Worksheets.Add
Next x
End Sub
How do I amend it so it changes the tab name from sheet1, sheet2 etc to a
name taken from a list of branches which are in 'sheet1' of the same file?????
Thanks
Amanda
I have the following code which adds lots of sheets to a workbook:
Sub AddSheets()
Dim iNoSheets As Integer
Dim x As Integer
iNoSheets = Application.InputBox("How many sheets to add?", "Add Sheets",
10, , , , 1)
For x = 1 To iNoSheets
Worksheets.Add
Next x
End Sub
How do I amend it so it changes the tab name from sheet1, sheet2 etc to a
name taken from a list of branches which are in 'sheet1' of the same file?????
Thanks
Amanda