Syntax
| XLS.CloseWorkBook [wbName,][SaveChanges,][fileName]
| ||||||
---|---|---|---|---|---|---|---|
Description
| This method closes a workbook and optionally saves the changed contents in the specified file.
| ||||||
See Also
| |||||||
Example
| Sub Main
Dim strName As String
If Not XLS.AppInit() Then Exit Sub
XLS.AppVisible = True
strName = XLS.AddWorkBook()
XLS.Value(1,1) = "Hello, world!"
XLS.CloseWorkBook "", True, "o:\AdminSQL\Scripts\MijnWerkboek.xlsx"
XLS.AppClose
End Sub
| ||||||