DADiSP Worksheet Functions > Function Categories > ActiveX > Automation Client > XLSAVE
Saves the current Excel Workbook via ActiveX Automation.
XLSAVE( verbose)
verbose |
- |
Optional. An integer, the message flag
|
A 1 if successful, else an error.
xlinit("C:\temp\myfile.xls");
xlput("A1:C10", ravel(1..30, 10));
xlsave();
xlclear();
The file C:\temp\myfile.xls is opened and the values 1..30 are shaped into a 10x3 array and written to cells A1 through C10. The Workbook is saved to the original file C:\temp\myfile.xls.
XLSAVE connects to the running instance of Excel.
See XLSAVEAS to save to a specified file in an optional format.