Xbasic
Office::ExcelDocumentClear Method
Syntax
.Clear as V ()
Description
Reinitialize the Excel document as a new one. Any unsaved data will be lost when this method is called.
Example
dim Doc as Office::ExcelDocument
dim filename as C = "myworkbook.xlsx"
if Doc.Load(filename)
' Clear the document
Doc.Clear()
end ifBe sure that you have saved any existing document data using Save() or SaveToBlob() before calling this function.
See Also