Syntax
| XLS.SaveWorkBook [wbName], filename[, FileFormat][, Password][, MakeBackup]
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Saves the selected workbook.
| ||||||||||||
See Also
| |||||||||||||
Example
| Sub Main
Dim mySheets() As String
Dim x As Integer
If Not XLS.AppInit() Then Exit Sub
XLS.AppVisible = True
XLS.AddWorkBook
XLS.AddWorkSheet "Test1"
XLS.AddWorkSheet "Test2"
XLS.AddWorkSheet "Test3"
XLS.AddWorkSheet "Test4"
XLS.SaveWorkBook , "o:\AdminSQL\Scripts\mijntest.xlsx"
XLS.CloseWorkBook , False
XLS.OpenWorkBook "o:\AdminSQL\Scripts\mijntest.xlsx"
XLS.ListWorkSheets mySheets()
For x = 1 To UBound(mySheets)
Debug.Print mySheets(x)
Next x
XLS.AppClose
End Sub
|