A, Excel writes
1. Write a cell
(1) Controls Introduction
Write Cell: using Write Cell controls, to write to the specified cell
Introduction common attributes:
Destination:
Cell: the cell to be written. If there is already a value of the specified coordinates, it will be overwritten
Workbook name to be written: SheetName
Input:
Text: To write a value or formula in the cell or range
WorkbookPath: Excel file path needs to be written
Misc:
Private: If selected, the values of variables and parameters are no longer recorded in the level of detail
Options:
Password: Excel file password (such as no ignored)
(2) Remarks
Given Excel file "writeExample.xlsx", the "B1" cell is written as "Hello UiPath", the "B2" cell type the formula "= B1 &" Hello World ""
(3) Procedure
The first step: Use Write Cell control, input Excel file path, type "Hello Uipath" in the Input property
Step 2: Use Write Cell controls, type "= B1 &" "Hello World" in Input attribute ""
2. Write a line
(1) Controls Introduction
Write Range: Use Write Range control, to write to the specified range of cells
Introduction common attributes:
Input:
Workbook name to be written: SheetName
StartingCell: start writing data from the specified cell
Input:
DataTable: To write data to a single specified range
Misc:
Private: If selected, the values of variables and parameters are no longer recorded in the level of detail
Options:
AddHeaders: If selected, column headings will be written to the specified table range
(2) Remarks
Given the Excel file "Employees300.xlsx", using the Read Write control to read data A2 line, and write to the file "writeExample.xlsx" in
(3) Procedure
The first step: Read Range using the controls, input Excel file path, data is read range A2 to E2, to a variable in rowDT
Step 2: Use Write Range controls, start writing data from the line A2
3.写一列
(1)控件介绍
Write Range: 使用Write Range控件,在指定范围单元格写入内容
(2)案例说明
给定Excel文件”Employees300.xlsx”,使用Read Write控件读取A列的数据,并写入到文件”writeExample.xlsx”中
(3)操作步骤
第一步:使用Read Range控件,输入Excel文件路径,读取A1到A320范围的数据,保存到变量columnDT
第二步:使用Write Range控件,从A1列开始写入数据
4.写多行多列
(1)控件介绍
Write Range: 使用Write Range控件,在指定范围单元格写入内容
(2)案例说明
给定Excel 文件“Employees300.xlsx“,读取从单元格”A2”到”E7”范围的数据,并将数据写入到“ writeExample.xlsx “文件的由”A2”开始的单元格中
(3)操作步骤
第一步:使用Read Range控件,输入Excel文件路径,读取从单元格” A2 ”到” E7”范围的数据
第二步:使用Write Range控件,输入Excel文件路径,写入由步骤一中从单元格” A2 ”到” E7”范围的数据
文章来源:http://rpazj.com
作者:RPA之家
作者:RPA之家