Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5    Statistic    FMM    Blog  


Creates a new workbook in memory.

Component Version macOS Windows Linux Server iOS SDK
XL 2.9 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "XL.NewBook"; XML )   More


Parameter Description Example
XML Pass 1 to create a new XML bases Excel file (xlsx). Else pass 0 for an old style file (xls). Default is 0. 0


Returns book reference number.


Creates a new workbook in memory.
Please call XL.Book.Release later to free memory.
Book reference numbers are starting at 19000 and counting up for each new book.


Create a new book in xls format (older):

$book = MBS( "XL.NewBook"; 0 )

Create a new book in xlsx format (newer):

$book = MBS( "XL.NewBook"; 1 )

See also

Release notes

Example Databases

Blog Entries

Created 18th August 2014, last changed 17th March 2020

XL.LoadBookPartially - XL.Sheet.AddDataValidation

Feedback: Report problem or ask question.

MBS Xojo Plugins

Start Chat