Macro to create worksheets
Solved/Closed
Related:
- Macro to create worksheets
- Create blackberry id - Guide
- How to create viber group - Guide
- Create skype account - Guide
- Create gmail - Guide
- How to split excel sheet into multiple worksheets - Guide
2 responses
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
20 Mar 2012 à 11:13
20 Mar 2012 à 11:13
Hi Mike,
First select all the project names you want to create a sheet for. Then run the following macro:
When you enter new project names, simply select only the new ones and run the macro again.
Best regards,
Trowa
First select all the project names you want to create a sheet for. Then run the following macro:
Sub test()
Dim x As Integer
For Each cell In Selection
x = Sheets.Count
Sheets("Sheet2").Copy After:=Sheets(x)
Sheets("Sheet2 (2)").Name = cell.Value
Next cell
End Sub
When you enter new project names, simply select only the new ones and run the macro again.
Best regards,
Trowa