LogoLogo
About
  • Home
  • Guides
  • BDK
  • REST API
  • Release Notes
  • Getting Started
    • Excel Overview
  • Workbooks
    • Create an Excel File
  • Worksheets
    • Add a Worksheet
    • Get a Worksheet
    • Get Worksheets
    • Get an Item from an Excel Worksheet
    • Extract Text from a Worksheet
    • Remove a Worksheet
    • Save a Worksheet
  • Tables
    • Insert a Table
    • Extract a Table from a Worksheet
    • Get a Singular Table from an Excel Worksheet
    • Delete a Table
  • Rows
    • Get a Row
    • Get a Row's Cell
    • Insert a Row
  • Columns
    • Insert a Column
  • Cells
    • Get a Cell Value
    • Get a Cell's Column Label
    • Get a Cell's Formula
    • Get a Cell's Row Number
    • Set a Cell's Value
  • Changelogs
    • Get Changelog
    • Apply Changelog
Powered by GitBook
On this page
  • Overview
  • Prerequisite Data
  • Syntax
  • Examples

Was this helpful?

Export as PDF
  1. Worksheets

Remove a Worksheet

Removes a specified worksheet.

Overview

This procedure removes a specified worksheet from an Excel File. In automation flows, it is useful for cleaning up intermediate sheets that are no longer needed after data processing steps. It helps maintain a clean and predictable workbook structure across runs, especially when regenerating reports, refreshing data, or preparing files.

Be sure to verify the worksheet name before deletion to avoid accidental data loss!

Prerequisite Data

These required data elements must be present in the automation before using the procedure.

Data Name
Data Type

the worksheet

Excel Worksheet

Syntax

Below is a line-by-line overview of the automation syntax. Expand each line to learn more.

remove the worksheet

What does it do? References a worksheet in an Excel file to remove.

Where does it go? This phrase should be written on a new line.

Does it require input data? ⛔ No — This phrase does not require input data.

Is it required? ✅ Yes — This phrase is required in the syntax.

Examples

1. Remove the Excel Worksheet

get the excel's worksheet where
    the worksheet name is "Sheet1"
remove the worksheet

Last updated 4 days ago

Was this helpful?