Set Excel area alignment

更新时间:
复制 MD 格式

1. Introduction

Note

Prerequisite components: Start Excel or Get Opened Excel

You can use this component to set the content alignment for a specified area.

2. Inputs

Note

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

3. Outputs

Note

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

4. Component Usage Examples

4.1. Component configuration example

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

  2. For Area Start Row Number, keep the default value of 1.

  3. For Area Start Column Letter, keep the default value of A.

  4. For Area End Row Number, keep the default value of 2.

  5. For Area End Column Letter, keep the default value of C.

  6. For Horizontal Alignment, select Center.

  7. For Vertical Alignment, select Center.

  8. Keep the default values for the advanced options.

4.2. Example execution result

Not applicable

5. Example flow

Build the flow

  1. You can use the Start Excel component to open the specified Excel file.

  2. You can use the Get Active Sheet component to obtain the active sheet object.

  3. You can use the Set Excel Area Alignment component to set the content alignment for the specified area.

image

Result

As shown in the following figure, after this flow successfully executes, all content in the specified area of the table is aligned to the top left.