Delete Worksheet.(Microsoft Excel Office Scripts)

Japanese version.

Introduces how to delete a worksheet using Office scripts.

Operations

The following syntax is used (Red text indicates variable parts)

workbook.getWorksheet("Sheet name to be deleted").delete();

The sheet to be deleted must be visible.

Attempting to delete a sheet that is not visible will result in an error.

For those who want to learn Office script effectively

The information on this site is now available in an easy-to-read e-book format.

Or Kindle Unlimited (unlimited reading).

You willl discover how to about basic operations.

By the end of this book, you will be equipped with the knowledge you need to use Excel Office Script to streamline your workflow.

Links

Office Scripts Articles