How to Insert Sheets Using Array in BASIC Macros ? I got error message
In Calc Spread Sheets - “Sheet1” is default , After the “Sheet1” , I want to Insert New Sheets Names are “East”, “West”, “North”, “South”.
How to Insert the Sheets Using Macros ?
Private Sub InsertSheets
Dim Doc As Object, oSheets As Object
Dim InsertingSheets("East", "West", "North", "South")
Doc = ThisComponent
oSheets = Doc.Sheets
For i = 0 to 3
oSheets.insertNewByName(InsertingSheets(i) , oSheets.Count )
next i
End Sub