Hello,
I'm able to create a multiple worksheets using following VBA code,
Option Base 1
Sub AddMultipleSheetswithNames()
Worksheets.Add After:=Sheet1, Count:=4
Dim p, q As Integer
Dim Sheetname
Sheetname = Array("A", "B", "C", "D", "E")
p = Worksheets.Count
For q = 1 To p
With Worksheets(q)
.Name = Sheetname(q)
End With
Next q
End Sub
It does create new worksheets with name A through E but it remove the sheet1 ( that was originally with the workbook). so what should I modify in above code to keep the sheet1 and then add new worksheets A through E?
Any help would be appreciated.
Thank you.
Bookmarks