Open Version 11 (Net)

Action group: Excel


Description

The action returns the context for working with an Excel document. There is no automatic closing of the document. To close a document, use the "Close" action

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
PathToFileThe path to the file to be opened.Robin.FilePath
Yes
Related contextThe context for opening an already open Excel file for a new file in the same instance of the MS Excel application. Helps original data sources to display correctly when copied from one file to another.Robin.ExcelExcel contextNo
Open VisibleIf the value is «true», the MS Excel application opens in visible mode and the work of the robot is visible. If «false», the application opens in the background and the work of the robot is not visible. When using a linked context, the value with which the linked Excel file was opened is applied.Robin.BooleantrueNo
PasswordPassword from the Excel document. The default is no password.Robin.Password
No
Save changesIf the value is «true», any action to edit the document will immediately save the changes made.Robin.BooleantrueNo
Results
ContextAction context for working with an Excel documentRobin.ExcelExcel context

Special conditions of use

Automatic closing of the document is not provided. It is necessary to use "Close" action.

Opening .txt files in UTF-8 encoding is possible through already opened Excel: Data -> From Text/CSV.

Example of use

Task

There is an Excel document "Book1.xlsx".

It is necessary to open the file "Book1.xlsx" and delete Sheet2 in it. 

Solution

Use the "Open" and "Delete sheet" actions. 

Implementation

  1. Assemble a robot scheme consisting of actions: 
  2. Set the parameters of the "Open" action. 


  3. Set the parameters of the "Delete sheet" action. 


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

Result

The program robot completed successfully. 

The document is opened and Sheet2 is deleted from the document. The changes are saved. 


  • Нет меток