Create a sheet

更新时间:
复制 MD 格式

1. Introduction

Note

Prerequisites: Start Excel or Get opened Excel

This component creates a new sheet.

2. Inputs

Note

For more information about each input, see the help text in the component panel of the visual editor.

3. Outputs

Note

For more information about each output, see the help text in the component panel of the visual editor.

4. Component Usage Example

4.1. Sample configuration

  1. For Opened Excel object, select v_excel_obj_1, which is the output of the Start Excel or Get opened Excel component.

  2. For Sheet name, enter "Test new sheet".

  3. For Sheet position, select "First".

  4. Default Values for Advanced Options

4.2. Sample result

None

5. Sample flow

Setup flow

  1. Use the Get opened Excel component to retrieve the opened Excel file object.

  2. Use the Create sheet component to create a new sheet.

  3. Use the Write a row to the end of Excel component to write ["Xiong Er", "18"] to the last row of the specified sheet.

  4. Use the Save Excel component to save the Excel file.

image

Result

After the flow runs, it retrieves the opened Excel file, creates a new sheet, writes the specified content to the first row, and saves the file. The result is shown in the following figure.