Hide columns Version 1 (Python)

Action group: Office


Description

Action hides visible columns

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for working with ods/xlsx table.Robin.OpenSheetD oc
Yes
Starting column nameThe name of the starting column in the range of columns that will be hidden. If the field is not filled in, the starting column will be determined by the value from the «Starting column index» field. If neither the name nor the index of the starting column is specified, the action will fail.Robin.String
No
Starting column indexThe sequence number of the starting column in the range of columns to be hidden. The numbering starts from 1.Robin.Numeric
No
Ending column nameThe name of the ending column in the range of columns that will be hidden. If the field is not filled in, the starting column will be determined by the value from the «Ending column index» field. If neither the name nor the index of the destination column is specified, the range will be limited to the starting column only.Robin.String
No
Ending column indexThe sequence number of the ending column in the range of columns to be hidden. The numbering starts from 1.Robin.Numeric
No

Special conditions of use

None.

Example of use

Task 

There is a tabular document. It is necessary to hide columns B and C.

Solution 

Use the actions "Open", "Hide columns", "Save".

Implementation

  1. Assemble a robot scheme consisting of actions:

  2. Set parameters for the "Open" action. In the "Path to file" field specify the path to the required tabular document "Test 1".


  3. Set the parameters for the "Hide columns" action. 
    1. in the "Context" field specify the context of the opened document "Test 1";
    2. in the "Starting column name" field specify the name of the start column in the range of columns that will be hidden;
    3. in the "Ending column name" field specify the name of the end column in the range of columns to be hidden.


  4. Set the parameters of the "Save" action.
    1. In the "Context" field, specify the context of the open document "Test 1".


  5. Launch the robot using the "Start" button in the top panel. 

Result

The program robot completed successfully.

The required columns are hidden.

  • Нет меток