Procedures

Automation procedures in the Microsoft Excel BDK Book.

to clear the worksheet range

Clear the contents of a range in an Excel sheet.

Input Concepts

Concept
Description
Type
Required
Default Value

The reference to the Excel range.

excel range reference

Yes

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 range

to create a (table) on a worksheet range

Create a table on a specified range in an Excel sheet.

Input Concepts

Concept
Description
Type
Required
Default Value

The reference to the Excel range.

excel range reference

Yes

has headers

A boolean value indicating whether the range has headers. Default is True.

boolean

No

True

Output Concepts

Concept
Description
Type

The reference to the created Excel table.

excel table reference

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

Concept
Description
Type
Required
Default Value

The reference to the Excel sheet.

excel sheet reference

Yes

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

Concept
Description
Type

The created range.

excel range reference

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

Concept
Description
Type
Required
Default Value

The reference to the Excel table.

excel table reference

Yes

The reference to the column to delete.

excel column reference

Yes

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

Concept
Description
Type
Required
Default Value

The reference to the Excel table.

excel table reference

Yes

The reference to the row to delete.

excel row reference

Yes

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

Concept
Description
Type
Required
Default Value

The reference to the Excel cell.

excel cell reference

Yes

Output Concepts

Concept
Description
Type

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

Concept
Description
Type
Required
Default Value

The reference to the Excel cell.

excel cell reference

Yes

Output Concepts

Concept
Description
Type

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

Concept
Description
Type
Required
Default Value

The reference to the Excel cell.

excel cell reference

Yes

Output Concepts

Concept
Description
Type

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

Concept
Description
Type
Required
Default Value

The reference to the Excel table.

excel table reference

Yes

Output Concepts

Concept
Description
Type

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

Concept
Description
Type
Required
Default Value

The reference to the Excel range.

excel range reference

Yes

Output Concepts

Concept
Description
Type

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

Concept
Description
Type
Required
Default Value

The reference to the Excel table.

excel table reference

Yes

The reference to the Excel column.

excel column reference

Yes

Output Concepts

Concept
Description
Type

The list of Excel cells in the table column.

excel cell reference

Examples

Retrieve the cells of an Excel table.

to get the (file's sheets)

FILTER - CAPABLE

Retrieve the sheets of an Excel file.

Input Concepts

Concept
Description
Type
Required
Default Value

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

Concept
Description
Type

The list of Excel sheets in the file.

excel sheet reference

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

Concept
Description
Type
Required
Default Value

The reference to the Excel range.

excel range reference

Yes

Output Concepts

Concept
Description
Type

The following row in the sheet.

excel range reference

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

Concept
Description
Type
Required
Default Value

The reference to the Excel table.

excel table reference

Yes

Output Concepts

Concept
Description
Type

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

Concept
Description
Type
Required
Default Value

The reference to the Excel range.

excel range reference

Yes

Output Concepts

Concept
Description
Type

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

Concept
Description
Type
Required
Default Value

The reference to the Excel table.

excel table reference

Yes

The reference to the Excel row.

excel row reference

Yes

Output Concepts

Concept
Description
Type

The list of Excel cells in the table row.

excel cell reference

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

Concept
Description
Type
Required
Default Value

The reference to the Excel range.

excel range reference

Yes

The reference to the Excel row.

excel row reference

Yes

Output Concepts

Concept
Description
Type

The list of Excel cells in the sheet.

excel cell reference

Examples

Retrieve the cells of an Excel sheet.

to get the (sheet's tables)

FILTER - CAPABLE

Retrieve the tables of an Excel sheet.

Input Concepts

Concept
Description
Type
Required
Default Value

The reference to the Excel sheet.

excel sheet reference

Yes

Output Concepts

Concept
Description
Type

The list of Excel tables in the sheet.

excel table reference

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

Concept
Description
Type
Required
Default Value

The reference to the Excel sheet.

excel sheet reference

Yes

Output Concepts

Concept
Description
Type

The used range of the sheet.

excel range reference

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

Concept
Description
Type
Required
Default Value

The reference to the Excel range.

excel range reference

Yes

Output Concepts

Concept
Description
Type

The list of Excel rows in the sheet.

excel row reference

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

Concept
Description
Type
Required
Default Value

The reference to the Excel table.

excel table reference

Yes

Output Concepts

Concept
Description
Type

The range of the table.

excel range reference

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

Concept
Description
Type
Required
Default Value

The reference to the Excel table.

excel table reference

Yes

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

Concept
Description
Type

None.

excel column reference

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

Concept
Description
Type
Required
Default Value

The reference to the Excel table.

excel table reference

Yes

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

Concept
Description
Type

None.

excel row reference

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

Concept
Description
Type
Required
Default Value

The reference to the Excel table.

excel table reference

Yes

Output Concepts

Concept
Description
Type

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

Concept
Description
Type
Required
Default Value

The reference to the Excel range.

excel range reference

Yes

Output Concepts

Concept
Description
Type

content

The range content as a table object.

table

Examples

to retrieve the (columns) from the table

FILTER - CAPABLE

Retrieve the columns of an Excel sheet.

Input Concepts

Concept
Description
Type
Required
Default Value

The reference to the Excel table.

excel table reference

Yes

Output Concepts

Concept
Description
Type

The list of Excel columns in the table.

excel column reference

Examples

Retrieve the columns of an Excel table.

to retrieve the (rows) from the table

FILTER - CAPABLE

Retrieve the rows of an Excel

Input Concepts

Concept
Description
Type
Required
Default Value

The reference to the Excel table.

excel table reference

Yes

Output Concepts

Concept
Description
Type

The list of Excel rows in the table.

excel row reference

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

Concept
Description
Type
Required
Default Value

The reference to the Excel table.

excel table reference

Yes

Output Concepts

Concept
Description
Type

The range of the table.

excel range reference

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

Concept
Description
Type
Required
Default Value

The reference to the Excel cell.

excel cell reference

Yes

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

Concept
Description
Type
Required
Default Value

The reference to the Excel cell.

excel cell reference

Yes

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

Concept
Description
Type
Required
Default Value

The reference to the Excel table.

excel table reference

Yes

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

Concept
Description
Type
Required
Default Value

The reference to the Excel range.

excel range reference

Yes

content

The table object to set in the range.

table

Yes

Examples

Last updated

Was this helpful?