--- title: Microsoft Excel connector methods description: The Microsoft Excel connector methods perform various actions on Microsoft Excel documents. In an automation flow, the methods are connected with other methods and components. To use the methods, you must first expose them. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/integrate-applications/microsoft-excel-connector-methods.html release: australia topic_type: reference last_updated: "2026-03-12" reading_time_minutes: 32 breadcrumb: [Microsoft Excel, Connectors, Automation components, RPA Desktop Design Studio, Robotic Process Automation \(RPA\) Hub, Workflow Data Fabric] --- # Microsoft Excel connector methods The Microsoft Excel connector methods perform various actions on Microsoft Excel documents. In an automation flow, the methods are connected with other methods and components. To use the methods, you must first expose them. ## Open Creates or opens an existing Microsoft Excel file depending on the inputs. **Note:** You must execute this method before any other method.
| Parameter | Description | Data port type | Data type |
|---|---|---|---|
| Filepath | Path to the existing file that the method opens. To create a file, you must set the value of the CreateNewFile parameter to True. **Note:** The path must contain the filename. | Data in | String |
| CreateNewFile | Specifies whether a new Excel file should be created if the specified file does not exist.If CreateNewFile parameter is set to true, a new file is created at the specified file path. If set to False, it will try to open the excel from the given file path. | Data in | Boolean |
| DisplayAlerts | Specifies whether Excel displays alerts or prompts during the opening process.If set to true, Excel displays alerts for issues such as file conflicts or compatibility warnings. If set to false, these alerts are suppressed. | Data in | Boolean |
| IsVisible | Specifies if the Excel application window is visible to the user when the file is opened or not.If set to true, the Excel window is displayed on the screen. If set to false, Excel runs in the background without a visible interface. | Data in | Boolean |
| ReadOnlyMode | Specifies if the Excel file should be opened in the read-only mode.If set to true, the file opens in the read-only mode, preventing any changes from being made. If set to false, the file opens in the normal mode, allowing modifications. | Data in | Boolean |
| Password | Password required to open the Excel file if it is password-protected.If the file is not password-protected, this parameter can be left blank. | Data in | String |
| Return | Returns True orFalse value. If the value is True, the file is successfully opened or created. | Data out | Boolean |
| Parameter | Description | Data port type | Data type |
|---|---|---|---|
| Sheetname | Name of the sheet to fill blank values. | Data in | String |
| ColumnName | Name of the column in the worksheet that needs to be filled with a value.ColumnName is an Enum data type that represents Excel columns from A to AZ. | Data in | ColumnName |
| Value | Value to be filled in the column. | Data in | String |
| Parameter | Description | Data port type | Data type |
|---|---|---|---|
| SheetName | Name of the sheet where the chart is created. | Data In | String |
| CellRange | Range of cells from which the chart is created. | Data In | String |
| ChartType | Specifies the type of chart to be created.The available chart types depend on the specific implementation of the Excel connector being used. | Data In | ExcelChartType |
| Return | If True, the chart is successfully created. If False, the chart creation is failed. | Data Out | Boolean |
| Parameter | Description | Data Port Type | Data type |
|---|---|---|---|
| SheetName | Name of the sheet from which the column is deleted. | Data In | String |
| ColumnIndex | Index of the column that must be deleted.In Excel, columns are labeled alphabetically \(A, B, C, etc.\), and each column has a corresponding numeric index \(1 for column A, 2 for column B, and so on\). | Data In | Integer |
| Return | Returns the Boolean value that indicates whether the column was deleted. If True, the column is deleted. If False, the column was not deleted. | Data Out | Boolean |
| Parameter | Description | Data Port Type | Data type |
|---|---|---|---|
| SheetName | Name of the worksheet to search within. | Data In | String |
| SearchText | The text to search for within the specified column. | Data In | String |
| SearchColumn | The column where the search will be conducted.ColumnName is an Enum data type that represents Excel columns from A to AZ. | Data In | ColumnName |
| StartRowIndex | The row index from which the search will begin. | Data In | Integer |
| Return | Returns a Boolean value indicating whether the SearchText was found. If True, the text is found. If False, the text is not found. | Data Out | Boolean |
| Parameter | Description | Data Port Type | Data type |
|---|---|---|---|
| SheetName | Name of the worksheet to search within. | Data In | String |
| SearchText | The text to search for within the specified column. | Data In | String |
| SearchColumn | The column where the search is conducted.ColumnName is an Enum data type that represents Excel columns from A to AZ. | Data In | ColumnName |
| StartRowIndex | The row index from which the search begins. | Data In | Integer |
| Return | Returns a Boolean value indicating whether the SearchText was found. If True, the text is found. If False, the text is not found. | Data Out | Boolean |
| Parameter | Description | Data Port Type | Data type |
|---|---|---|---|
| SheetName | Name of the worksheet that contains the source data. | Data In | String |
| ColumnName | Denotes the name of the column from which values are retrieved.ColumnName is an Enum data type that represents Excel columns from A to AZ. | Data In | ColumnName |
| FirstRowAsHeader | Indicates whether the first row in the specified column contains headers. | Data In | Boolean |
| Distinct | Specifies whether the retrieved values should be distinct or unique. | Data In | Boolean |
| ValueType | Extracts values based on visibility. | Data In | ValueT |
| Return | Returns the number of rows. | Data Out | Integer |
| Parameter | Description | Data Port Type | Data type |
|---|---|---|---|
| SheetName | Name of the worksheet to search within. | Data In | String |
| SearchText | The text to search for within the specified column. | Data In | String |
| SearchColumn | The column where the search is conducted.ColumnName is an Enum data type that represents Excel columns from A to AZ. | Data In | ColumnName |
| StartRowIndex | The row index from which the search begins. | Data In | Integer |
| Return | Returns True if SearchText is found in the specified column. Else, it returns False. | Data Out | Boolean |
| Parameter | Description | Data Port Type | Data type |
|---|---|---|---|
| SheetName | Name of the worksheet where the column width is adjusted. | Data In | String |
| Width | The width in characters to which the column is set.Only integer value is accepted. Decimal values are not accepted. | Data In | Integer |
| Return | Returns boolean value identifying if the column type has been set or not. | Data Out | Boolean |
| Parameter | Description | Data Port Type | Data type |
|---|---|---|---|
| SheetName | Name of the worksheet where the column is located. | Data In | String |
| ColumnName | Column where the filter is applied.ColumnName is an Enum data type that represents Excel columns from A to AZ. | Data In | ColumnName |
| FilterValue | The value to filter by within the identified column. | Data In | String |
| Parameter | Description | Data Port Type | Data type |
|---|---|---|---|
| SheetName | Name of the worksheet that contains the source data. | Data In | String |
| RowNumber | Indicates the row number within the specified worksheet where the filtering criteria are defined. It identifies the row containing the criteria that will be used to filter the data. | Data In | Integer |
| ColumnName | Name or identifier of the column based on which the filtering will be performed. It represents the column to which the filtering criteria apply.ColumnName is an Enum data type that represents Excel columns from A to AZ. The provided ColumnName refers to the column name relative to the starting column of your data. For example, if your data begins at column B in the Excel sheet, the relative column index A corresponds to column B, the relative column index B corresponds to column C, and so on. | Data In | ColumnName |
| FilterValue | Value or condition used as the filter criteria. It represents the specific value that the data in the designated column must match to be displayed after the filter is applied. | Data In | String |
| Parameter | Description | Data Port Type | Data type |
|---|---|---|---|
| SheetName | Name of the worksheet where the data will be sorted. | Data In | String |
| CellRange | The range of cells containing the data to be sorted. | Data In | String |
| ColumnName | The name of the column by which the data will be sorted.ColumnName is an Enum data type that represents Excel columns from A to AZ. | Data In | ColumnName |
| SortingOrder | The sorting order \(ascending or descending\) for the data. | Data In | SortingOrder |