Find Excel cell

更新时间:
复制 MD 格式

1. Component introduction

Note

Prerequisite components: Start Excel or Get Opened Excel

Use this component to find the location of a cell based on its content.

2. Input parameters

Note

For information about the input parameters, see the help text for each parameter in the component panel of the ROS Visual Editor.

3. Output parameters

Note

For information about the output parameters, see the help text for each parameter in the component panel of the ROS Visual Editor.

4. Component usage example

4.1. Component configuration example

  1. For Opened Sheet Object, select v_Sheet_obj_1, which is the output of the Get Active Sheet or Activate Sheet component.

  2. Set Area Start Row Number to 1.

  3. Set Area Start Column Letter to A.

  4. Set Area End Row Number to 7.

  5. Set Area End Column Letter to C.

  6. Set Value to Find to "Test".

  7. Use the default values for the advanced options.

4.2. Example execution result

None

5. Example of building a flow

Setup flow

  1. Use the Start Excel component to start the specified Excel file.

  2. Use the Get Active Sheet component to obtain the active sheet object.

  3. Use the Find Excel Cell component to find the cell that contains "Test" in the specified area and return the cell location.

  4. Use the Log Record component to print the returned cell location information.

image

Execution result

As shown in the figures below, after the flow runs, it opens the Excel file, finds the cell that contains "Test" in the specified area, and prints the location of the cell.