Save Version 1 (Python)

Action group: Office 


Description

The action saves the changes in the existing document. 

Settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextContext for working with a documentRobin.OpenTextDo c
Yes
Folder pathPath to the folder where the document is to be savedRobin.FolderPathC:\doc\imgNo
File nameThe name of the new file that will be created based on the original one.Robin.String
No
Results
Path to fileFull path to the saved file.Robin.FilePath

Special conditions of use

None.

Example of use

Task

There is a File called book1.xlsx. Set the value in cell A3=test 4 and save the document. 

Solution

Use the "Open", "Set cell value" and "Save" actions.

Implementation

  1. Move the "Open" action to the workspace and fill in its parameters
    In the "PathToFile" field set the path to the file book1.xlsx

  2. Move the "Set cell value" action to the workspace and fill in its parameters:
    1. In the "Context" field set the created context in step 1
    2. In the "Column of the cell" field, set the value = A.
    3. In the "Row of the cell" field, set the value = 3.
    4. In the "Value" field, specify the set = text 4. 
  3. Move the "Save" action to the workspace and fill in its parameters
    In the "Context" field set the context of the opened document. 



  4. Click the "Start" button in the top panel. 


Result

The program robot completed successfully. The required value is set in cell A3. The file is saved.


  • Нет меток