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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
XL.Book.DeleteSheetsExcept
Deletes all sheets except the one with given name.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| XL | 5.4 | Yes | Yes | Yes | Yes | Yes |
MBS( "XL.Book.DeleteSheetsExcept"; bookRef; Name ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| bookRef | The reference to the workbook. Please use XL.LoadBook to load a file. | $ref |
| Name | The name of the sheet to keep. | "People" |
Result
Returns OK or error.
Description
Deletes all sheets except the one with given name.Returns error if sheet name is not found.
On success, the book has only one sheet left.
If the sheet to delete is referenced by other sheets, this may cause problems.
Examples
Delete all sheets except one:
Set Variable [$r; Value:MBS("XL.Book.DeleteSheetsExcept"; $bookRef; "Reiter 2")]
See also
Blog Entries
Created 4th November 2015, last changed 4th November 2015
XL.Book.DeleteSheet - XL.Book.FontCount
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins