Procedures
Automation procedures in the Microsoft Excel BDK Book.
Make sure to add both the Microsoft Excel and the Microsoft Office 365 Books to your agent before using these automation procedures.
to clear the worksheet range
Clear the contents of a range in an Excel sheet.
Input Concepts
Examples
Clear the contents of a range in an Excel sheet.
...
get the first sheet
use the above as the sheet
get the sheet's used range
clear the worksheet rangeto create a (table) on a worksheet range
Create a table on a specified range in an Excel sheet.
Input Concepts
has headers
A boolean value indicating whether the range has headers. Default is True.
boolean
No
True
Output Concepts
Examples
Create a table on a specified range in an Excel sheet.
to create a (worksheet range) in a sheet
Create a range in an Excel sheet.
Input Concepts
start
The start address of the range. For example, "A1".
text
Yes
end
The end address of the range. For example, "B2".
text
Yes
Output Concepts
Examples
Create a range in an Excel sheet.
to delete a column from the table
Delete a column from the table of an Excel sheet.
Input Concepts
Examples
Delete a column from the table of an Excel sheet.
to delete a row from the table
Delete a row from the table of an Excel sheet.
Input Concepts
Examples
Delete a row from the table of an Excel sheet.
to get the (cell's color)
Retrieve the color of a cell in an Excel sheet.
Input Concepts
Output Concepts
cell's color
The color of the cell in the sheet.
text
Examples
Retrieve the color of a cell in an Excel sheet.
to get the (cell's formula)
Retrieve the formula of a cell in an Excel sheet.
Input Concepts
Output Concepts
cell's formula
The formula of the cell in the sheet.
text
Examples
Retrieve the formula of a cell in an Excel sheet.
to get the (cell's value)
Retrieve the value of a cell in an Excel sheet.
Input Concepts
Output Concepts
cell's value
The value of the cell in the sheet.
boolean or number or text
Examples
Retrieve the value of a cell in an Excel sheet.
to get the (column count) in a table
Get the number of columns in an Excel table.
Input Concepts
Output Concepts
column count
The number of columns in the table.
number
Examples
Get the number of columns in an Excel table.
to get the (column count) in a worksheet range
Get the number of columns in an Excel sheet.
Input Concepts
Output Concepts
column count
The number of columns in the sheet range.
number
Examples
Get the number of columns in an Excel sheet.
to get the (column's cells) from the table
Retrieve the cell of an Excel sheet.
Input Concepts
Output Concepts
Examples
Retrieve the cells of an Excel table.
to get the (file's sheets)
Retrieve the sheets of an Excel file.
Input Concepts
The reference to the Excel file. The file must be an Excel file stored in a SharePoint document library.
sharepoint file reference
Yes
Output Concepts
Examples
Retrieve the sheets of an Excel file.
Retrieve the sheets of an Excel file by name.
to get the (following row range) in a worksheet range
Retrieve the following row in an Excel sheet.
Input Concepts
Output Concepts
Examples
Retrieve the following row in an Excel sheet range.
to get the (row count) in a table
Get the number of rows in an Excel table.
Input Concepts
Output Concepts
row count
The number of rows in the table.
number
Examples
Get the number of rows in an Excel table.
to get the (row count) in a worksheet range
Get the number of rows in an Excel sheet.
Input Concepts
Output Concepts
row count
The number of rows in the sheet range.
number
Examples
Get the number of rows in an Excel sheet.
to get the (row's cells) from the table
Retrieve the cell of an Excel sheet.
Input Concepts
Output Concepts
Examples
Retrieve the cells of an Excel table.
to get the (row's cells) from the worksheet range
Retrieve the cell of an Excel sheet.
Input Concepts
Output Concepts
Examples
Retrieve the cells of an Excel sheet.
to get the (sheet's tables)
Retrieve the tables of an Excel sheet.
Input Concepts
Output Concepts
Examples
Retrieve the tables of an Excel sheet.
Retrieve the tables of an Excel sheet by name.
to get the (sheet's used range)
Retrieve the used range of an Excel sheet.
Input Concepts
Output Concepts
Examples
Retrieve the used range of an Excel sheet.
to get the (worksheet range's rows)
Retrieve the cell of an Excel sheet.
Input Concepts
Output Concepts
Examples
Retrieve the rows of an Excel sheet.
to get the (worksheet range) from the table
Retrieve the range of an Excel table.
Input Concepts
Output Concepts
Examples
Retrieve the range of an Excel table.
to insert a (new column) in the table
Insert a new column in the table of an Excel sheet.
Input Concepts
index
The index at which to insert the new column.
number
Yes
name
The name of the new column.
text
Yes
values
The values to insert in the new column.
boolean or number or text
Yes
Output Concepts
Examples
Insert a new column in the table of an Excel sheet.
to insert a (new row) in the table
Insert a new row in the table of an Excel sheet.
Input Concepts
index
The index at which to insert the new row.
number
Yes
values
The values to insert in the new row.
boolean or number or text
Yes
Output Concepts
Examples
Insert a new row in the table of an Excel sheet.
to read the (content) from a table
Read the contents of an Excel table and return it as a Table object.
Input Concepts
Output Concepts
content
The table content as a table object.
table
Examples
to read the (content) from a worksheet range
Read the contents of an Excel range and return it as a Table object.
Input Concepts
Output Concepts
content
The range content as a table object.
table
Examples
to retrieve the (columns) from the table
Retrieve the columns of an Excel sheet.
Input Concepts
Output Concepts
Examples
Retrieve the columns of an Excel table.
to retrieve the (rows) from the table
Retrieve the rows of an Excel
Input Concepts
Output Concepts
Examples
Retrieve the rows of an Excel table.
to retrieve the (worksheet range) from a table
Retrieve the range of an Excel table.
Input Concepts
Output Concepts
Examples
Retrieve the range of an Excel table.
to set the cell's content to a value
Set the value of a cell in an Excel sheet.
Input Concepts
value
The value to set in the cell.
boolean or number or text
Yes
Examples
Set the value of a cell in an Excel sheet.
to set the cell's formula to a formula value
Set the formula of a cell in an Excel sheet.
Input Concepts
formula value
The formula to set in the cell.
text
Yes
Examples
Set the formula of a cell in an Excel sheet.
to write the content in a table
Set the contents of a table in an Excel table.
Input Concepts
content
The table object to set in the table.
table
Yes
Examples
to write the content in a worksheet range
Set the contents of a table in an Excel range.
Input Concepts
content
The table object to set in the range.
table
Yes
Examples
Last updated
Was this helpful?
