Get sheet names

更新时间:
复制 MD 格式

1. Component introduction

Note

Prerequisite components: Start Excel or Get Opened Excel

Use this component to retrieve the name of the current sheet or the names of all sheets in an Excel file.

2. Inputs

Note

For more information about the input parameters, see the component panel in the ROS Visual Editor.

3. Outputs

Note

For help with each output item, see the component panel in the Visual Editor.

4. Component usage examples

4.1. Component configuration example

  1. Set Opened Excel Object to `v_excel_obj_1`. This is the output of the preceding Start Excel or Get Opened Excel component.

  2. Set Get Scope to "All Sheets".

  3. Keep the default values for the advanced options.

4.2. Example execution result

None

5. Flow creation example

Setup flow

  1. Use the Start Excel component to open Excel file 1.

  2. Use the Get Sheet Names component to retrieve the names of all sheets in file 1.

  3. Use the Start Excel component to open Excel file 2.

  4. Use the Copy Sheet component to copy a specified sheet from file 1 to a new sheet in file 2.

Result

After the flow runs, the content of the specified sheet is copied to a new sheet, as shown in the following figure.

image