Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

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.

ParameterDescriptionData port typeData 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 inString
CreateNewFileSpecifies 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 inBoolean
DisplayAlertsSpecifies 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 inBoolean
IsVisibleSpecifies 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 inBoolean
ReadOnlyModeSpecifies 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 inBoolean
PasswordPassword 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 inString
ReturnReturns True orFalse value. If the value is True, the file is successfully opened or created.Data outBoolean

AddNewWorkSheet

Adds a new worksheet to the file. This method requires a sheet name as input parameter of type string that specifies the name of the new sheet.

Note: You must execute the Open method before executing this method.

ParameterDescriptionData port typeData type
SheetNameName of the new worksheet that the method adds to the file.Data inString

AutoFill

Automatically populates cells within a specified range based on the content of adjacent cells or a predefined pattern. This method is useful for copying data or formatting across multiple cells. Microsoft Excel analyzes the content of the initial selection and extrapolates it to fill the desired range. It can be used to extend a series of numbers, duplicate formulas, replicate text patterns, or perform any other data entry processing.

Note: You must execute the Open method before executing this method.

ParameterDescriptionData port typeData type
SheetNameName of the worksheet that contains the source data.Data inString
SourceRangeRange of cells with the data or formulas to replicate.Data inString

GetSheetNames

Returns the names of all the sheets in the opened Microsoft Excel document.

Note: You must execute the Open method before executing this method.

ParameterDescriptionData port typeData type
ReturnReturns the names of the sheets in the opened Microsoft Excel document.Data OutString

Close

Closes the active Microsoft Excel document if it is already opened and releases the memory. This method helps in memory handling.

Note: You must execute the Open method before executing this method.

ParameterDescriptionData port typeData type
saveChangesIf the value is set to True, changes to the file are saved before closing. If set to False, no changes are saved.Data inBoolean

ColumnsCount

Returns the total number of columns in a specified worksheet of a Microsoft Excel file. This method requires the SheetName parameter to specify the worksheet, and then returns the column count for that sheet.

Note: You must execute the Open method before executing this method.

ParameterDescriptionData port typeData type
SheetNameName of the sheet that the method uses to count the number of columns.Data inString
ReturnReturns the count of columns in the worksheet.Data outInteger

Copy

Copies the contents from a range of cells in a worksheet.

Tip: You can paste the copied contents with the Paste method.

ParameterDescriptionData port typeData type
SheetnameName of the sheet that contains source data.Data inString
CellrangeRange of cells to be copied.Data inString

Paste

Pastes the clipboard content into specific cells provided in the CellLocation parameter of a worksheet. It can also be a range of cells.

Note: You must execute the Copy method before executing this method.

ParameterDescriptionData port typeData type
SheetnameName of the sheet where the clipboard content will be pasted.Data inString
CellLocationIndicates the location (cell reference) where the clipboard content will be pasted.Data inString

FillBlankValues

Fills empty cells in a specified column of a worksheet in a Microsoft Excel file with a given value. It requires the SheetName parameter to specify the worksheet, the ColumnName parameter to identify the column, and the Value parameter to provide the replacement value for the empty cells.

Note: You must execute the Open method before executing this method.

ParameterDescriptionData port typeData type
SheetnameName of the sheet to fill blank values.Data inString
ColumnNameName 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 inColumnName
ValueValue to be filled in the column.Data inString

CreateChart

Creates a chart for a specific range in a specific worksheet. This method is used to automate creation of charts.

Note: You must execute the Open method before this method.

ParameterDescriptionData port typeData type
SheetNameName of the sheet where the chart is created.Data InString
CellRangeRange of cells from which the chart is created.Data InString
ChartTypeSpecifies the type of chart to be created.The available chart types depend on the specific implementation of the Excel connector being used.Data InExcelChartType
ReturnIf True, the chart is successfully created. If False, the chart creation is failed.Data OutBoolean

CreatePivotTable

Generates a pivot table on the specified sheet, utilizing the settings configured in the 'Pivot Table Settings' window.

Note: You must execute the Open method before this method.

ParameterDescriptionData port typeData type
SheetNameName of the sheet from where the pivot table has to be created.Data InString
PivotTableNameName of the pivot table.Data InString

DeleteColumn

Deletes a column in a given sheet based on the specified index of the column.

ParameterDescriptionData Port TypeData type
SheetNameName of the sheet from which the column is deleted.Data InString
ColumnIndexIndex 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 InInteger
ReturnReturns the Boolean value that indicates whether the column was deleted. If True, the column is deleted. If False, the column was not deleted.Data OutBoolean

DeleteContentFromRange

Deletes contents from the specified range of cells.

ParameterDescriptionData Port TypeData type
SheetNameName of the sheet from which the contents will be deleted.Data InString
CellRangeSpecifies the range of cells from which data is deleted.Data InString
ReturnReturns the Boolean value that indicates whether the content from range of cells was deleted. If True, the content is deleted. If False, the content is not deleted.Data OutBoolean

DeleteEmptyColumns

Deletes columns that have no content in a specified worksheet of a Microsoft Excel file. This method requires the SheetName parameter to identify the worksheet.

ParameterDescriptionData Port TypeData type
SheetNameName of the sheet containing the empty column.Data InString

DeleteEmptyRows

Deletes rows that have no content in a specified worksheet of a Microsoft Excel file. This method requires the SheetName parameter to identify the worksheet.

ParameterDescriptionData Port TypeData type
SheetNameName of the sheet containing the empty rows.Data InString

DeleteRow

Deletes a row from the worksheet based on the RowNumber parameter.

ParameterDescriptionData Port TypeData type
SheetNameName of the sheet from which the row is deleted.Data InString
RowNumberIndicates the number of the row that must be deleted.Data InInteger
ReturnReturns the Boolean value that indicates whether the row is deleted. If True, the row is deleted. If False, the row is not deleted.Data OutBoolean

DeleteWorksheet

Deletes the specified worksheet. This method requires the SheetName parameter to identify the worksheet.

ParameterDescriptionData Port TypeData type
SheetNameName of the sheet which must be deleted.Data InString
ReturnReturns the Boolean value that indicates whether the worksheet was deleted. If True, the worksheet is deleted. If False, the worksheet is not deleted.Data OutBoolean

ExportChartAsImages

Exports and saves a chart present in a sheet into an image file that is saved in the specified path. This process separates the chart from the Excel workbook, providing a standalone visual representation that can be easily shared or inserted into various documents, presentations, or reports.

ParameterDescriptionData Port TypeData type
SheetNameName of the sheet that contains the chart.Data InString
SaveFolderpathSpecifies the folder path where the charts are saved as image files.Data InString

ExportToPDF

Exports an Excel file as a PDF file to the path location mentioned in the FilePath parameter.

ParameterDescriptionData Port TypeData type
FilepathSpecifies the file path to which the PDF file is exported.Data InString

FindAndReplace

Locates the text given in the FindText parameter in a given worksheet specified by the SheetName parameter and replaces it with another text given in the ReplaceTo parameter.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet where the text will be replaced.Data InString
FindTextThe text that is searched for within the cells of the worksheet.Data InString
ReplaceToThe desired text to replace the text found using the FindText parameter.Data InString
ReturnReturns the Boolean value that indicates whether the text is replaced. If True, the text is replaced. If False, the text is not replaced.Data OutBoolean

GetActiveSheetName

Returns the name of the active worksheet.

ParameterDescriptionData Port TypeData type
ReturnReturns the name of the active worksheet in a string format.Data OutString

GetCellAddressIfRowHas

Searches a given text in the specified sheet. It scans through the specified column name, starting from the indicated row index. If the text is found, it returns true. Else, it returns false. Additionally, the matched cell address can be stored in the configured value.

Note: Execute the Open method before executing this method.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet to search within.Data InString
SearchTextThe text to search for within the specified column.Data InString
SearchColumnThe column where the search will be conducted.ColumnName is an Enum data type that represents Excel columns from A to AZ.Data InColumnName
StartRowIndexThe row index from which the search will begin.Data InInteger
ReturnReturns a Boolean value indicating whether the SearchText was found. If True, the text is found. If False, the text is not found.Data OutBoolean

GetCellFormula

Retrieves the cell formula from a worksheet.

Note: Execute the Open method before executing this method.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet to retrieve the cell formula from.Data InString
CellNameSpecifies the name or reference of the cell to retrieve the formula from.Data InString
ReturnReturns the specified cell formula in a string format.Data OutString

GetCellValue

Retrieves the value of a cell from a worksheet specified by the CellName parameter.

Note: Execute the Open method before executing this method.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet from which the cell value will be retrieved.Data InString
CellNameReturns the cell value or display text based on the configuration set in GetCellValue.Data InString
ReturnReturns the value in a specified cell in the string format.Data OutString

GetCellValueIfRowHas

Searches the specified sheet for a given text. It scans through the specified column, starting from the indicated row index. If the text is found, it returns true. Else, it returns false. Additionally, the matched cell value can be stored in the configured value.

Note: Execute the Open method before executing this method.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet to search within.Data InString
SearchTextThe text to search for within the specified column.Data InString
SearchColumnThe column where the search is conducted.ColumnName is an Enum data type that represents Excel columns from A to AZ.Data InColumnName
StartRowIndexThe row index from which the search begins.Data InInteger
ReturnReturns a Boolean value indicating whether the SearchText was found. If True, the text is found. If False, the text is not found.Data OutBoolean

GetCellValues

Returns the values of cells from a worksheet.

Note: Execute the Open method before executing this method.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet that contains the source data.Data InString

GetColor

Returns the RGB value of a cell specified in the CellName parameter from a worksheet.

Note: Execute the Open method before executing this method.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet to retrieve the cell color from.Data InString
CellNameName or reference of the cell to retrieve the color of.Data InString
ReturnReturns the color of the specified cell in the string format.Data OutString

GetColumnNameByIndex

Returns the column name corresponding to the given column number, where, for example, 1 corresponds to 'A'.

Note: Execute the Open method before executing this method.

ParameterDescriptionData Port TypeData type
ColumnNumberThe column number that you want to retrieve the name of.Data InInteger
ReturnReturns the name of the column in the string format.Data OutString

GetFilterData

Returns filtered data from a worksheet based on the specified filter criteria. Data is obtained starting from the row number provided in the RowNumber parameter.

Note: Execute the Open method before executing this method.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet that contains the source data.Data InString
RowNumberThe row number of the row that is the starting row for the extraction of data.Data InInteger
FirstRowAsHeaderDetermines whether the first row of the filtered data should be treated as header row. If set to true, the first row will be considered as header row and not included in the extracted data rows. If set to false, the first row will be included as part of the extracted data rows.Data InBoolean
ReturnReturns the filtered data in a table format. Operations can be performed on the rows and columns of this table.Data OutData table

GetFilteredDataAddress

Returns the address of the filtered data in the worksheet provided in the SheetName parameter.

Note: Execute the Open method before executing this method.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet to retrieve the address of filtered data from.Data InString
ReturnReturns a list or collection of strings where the strings are filtered data addresses.Data OutList(Of string)

GetRowValues

Returns cell values from the specified SheetName parameter to extract the values from. By default, if RowNumber is not specified (or set to -1), it reads values from the last row. Additionally, you can include output parameters to add column names and store their values in the output.

Note: Execute the Open method before executing this method.

ParameterDescriptionData Port TypeData type
SheetNameSpecifies the name of the worksheet to retrieve the values from.Data InString
RowNumberThe row to read values from. If set to -1, it defaults to the last row.Data InInteger

GetSelectedRange

Returns the currently selected range of cells from the worksheet specified in the SheetName parameter. Data is extracted from the specific areas of the worksheet that have been highlighted or chosen.

Note: Execute the Open method before executing this method.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet that contains the source data.Data InString
ReturnReturns the range of cells selected in a sheet in the string format.Data OutString

GetSheetNames

Returns a list of all worksheet names present in an Excel file.

Note: Execute the Open method before executing this method.

ParameterDescriptionData Port TypeData type
ReturnReturns all the available sheet names in a string array format.Data OutString[]

GetUsedRange

Returns the range of used cells of the specified sheet.

Note: Execute the Open method before executing this method.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet to read the range from.Data InString
IncludeHeadersIndicates whether headers should be included.Data InBoolean
ReturnReturns the range of used cells in string format.Data OutString

GetValuesByColumn

Returns a list of values from a specified ColumnName in the given SheetName based on the Distinct, FirstRowAsHeader, and ValueType parameters criteria.

Note: Execute the Open method before executing this method.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet that contains the source data.Data InString
ColumnNameDenotes 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 InColumnName
FirstRowAsHeaderIndicates whether the first row in the specified column contains headers.Data InBoolean
DistinctSpecifies whether the retrieved values should be distinct or unique.Data InBoolean
ValueTypeExtracts values based on visibility.Data InValueT
ReturnReturns the number of rows.Data OutInteger

InsertNewColumn

Inserts a new column at the index provided in the ColumnNumber parameter in the specified worksheet.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet where the column must be inserted.Data InString
ColumnIndexSpecifies the index of the column where the new column is inserted. For example, 1 is A, 2 is B, and so on.Data InInteger

InsertNewRow

Inserts a new row at the specified index in the specified worksheet.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet where the row will be inserted.Data InString
RowIndexIndex of the row. The row will be inserted at the specified index.Data InInteger
ReturnReturns the Boolean value that indicates whether a row is inserted. If True, the row is inserted. If False, the row is not inserted.Data OutBoolean

InsertObject

Inserts an embedded object into a cell identified by the index value in the CellName parameter in the specified worksheet. The path to that embedded object is provided in the Filepath parameter. Example of an object could be an excel file, an image, or a PDF file.

Note: Execute the Open method before executing this method.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet where the method inserts the object.Data InString
CellNameName of the cell where the method inserts the object. For example, A1.Data InString
FilepathFile path of the object that the method inserts.Data InString

IsOpen

Checks whether a Microsoft Excel workbook or file at the location provided in the Filepath parameter is open or not.

ParameterDescriptionData Port TypeData type
FilepathPath to the Excel file in the local drive.Data InString
ReturnReturns the Boolean value that indicates whether the Excel file is open. If True, the Excel file is open. If False, the Excel file is not open.Data OutBoolean

MergeCells

Merges the cells specified in the range in the specified worksheet.

ParameterDescriptionData Port TypeData type
SheetnameName of the worksheet on which the cells will be merged.Data InString
CellRangeRange of cells. All cells within the range are merged.Data InString

ReadFromRange

Retrieves data from a specified worksheet and returns it. You need to provide the worksheet name to indicate from which worksheet to extract the cell range, specify the cell range to determine the range of cells to read, and indicate whether the first row is a header in the FirstRowAsHeader parameter.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet from where the method reads the data.Data InString
CellRangeRange of cells. The method reads data from these cells.Data InString
FirstRowAsHeaderBoolean value that indicates whether the method treats the first row as the header. If True, the first row is treated as a header. If False, the first row is not treated as a header.Data InBoolean
ReturnReturns the data table that comprises the data from the cells.Data OutData Table

ReadFromSheet

Extracts data from a worksheet and convert it into a structured format, such as a DataTable.

ParameterDescriptionData Port TypeData type
SheetnameName of the worksheet from which the method reads the data.Data InString
ReturnReturns all the data in the specified worksheet.Data OutDataTable

RenameSheetName

Renames an existing worksheet.

ParameterDescriptionData Port TypeData type
OldSheetNameThe existing name of the worksheet.Data InString
NewSheetNameThe new name of the worksheet.Data InString
ReturnReturns the Boolean response that indicates whether the worksheet is renamed. If True, the worksheet is renamed. If False, the worksheet is not renamed.Data OutBoolean

RowsCount

Returns the count of rows in the specified worksheet.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet from where the count of rows are returned.Data InString
ReturnReturns the number of rows.Data OutInteger

RunMacro

Executes an existing macro in the Excel file. The method requires the name of the macro that the user intends to run.

ParameterDescriptionData Port TypeData type
MacroNameThe name of the Macro to execute.Data InString
ReturnReturns boolean value indicating if macro was successfully run or not.Data OutBoolean

Resize

Changes Excel application window's width and height dimensions. Layout and appearance of the Excel application can be customized to accommodate specific display requirements.

ParameterDescriptionData Port TypeData type
LeftThis parameter specifies the horizontal position of the top-left corner of the Excel application window relative to the screen's left edge. It defines the distance, in pixels or points, from the left edge of the screen to the left edge of the Excel window.Data InInteger
TopThis parameter indicates the vertical position of the top-left corner of the Excel application window relative to the screen's top edge. It defines the distance, in pixels or points, from the top edge of the screen to the top edge of the Excel window.Data InInteger
WidthThis parameter specifies the width of the Excel application window in pixels or points. It determines the horizontal size of the window, extending from the left edge to the right edge.Data InInteger
HeightThis parameter indicates the height of the Excel application window in pixels or points. It defines the vertical size of the window, extending from the top edge to the bottom edge.Data InInteger

RemoveFilter

Removes filters from a worksheet given in the SheetName parameter.

ParameterDescriptionData Port TypeData type
SheetnameName of the worksheet from which the method removes the filters.Data InString

Save

Saves any updates, changes, additions, or deletions made to the data or formatting within a Microsoft Excel document to ensure that the work is preserved and that the Excel file reflects the most recent updates.

SaveAs

Saves an Excel file with a different name or format to a file path provided in the Filepath parameter. The file can also be password protected by providing the value in the Password parameter.

ParameterDescriptionData Port TypeData type
FilepathThe file path where the Excel file is saved with a different name or format.Data InString
PasswordPassword to protect the Excel file that will be saved. This parameter is optional and has a default value of an empty string.Data InString

SaveCopyAs

Saves a copy of the Excel file to a specified path that serves as a destination for the saved copy.

ParameterDescriptionData Port TypeData type
FilepathThe file path where the Excel file is saved with a different name or format.Data InString
PasswordPassword to protect the Excel file that is saved. This parameter is optional and has a default value of an empty string.Data InString

SelectRange

Specifies and highlights a range of cells within an Excel worksheet.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet that contains the source data.Data InString
CellRangeThe range of cells that are selected within the specified worksheet. It defines the group of cells, typically identified by the starting and ending cell references, that will be highlighted or activated.Data InString

SelectRowByIndex

Selects the entire row based on the index provided in the RowNumber parameter in the worksheet.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet where the row is selected.Data InString
RowNumberThe index of the row to be selected.Data InInteger

SetActiveWorksheet

Marks the worksheet specified in the Sheetname as the active worksheet.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet which needs to be set as active.Data InString
ReturnReturns the boolean value indicating if the provided sheet has been set as active or not.Data OutBoolean

SetAlignment

Adjusts the alignment settings of cells given in the CellRange to control the presentation and appearance of data within the Excel worksheet and enhancing the visual appeal and readability of spreadsheet data, improving data presentation, and communication.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet that contains the source data.Data InString
CellRangeRange of cells to which the alignment settings or properties are applied.Data InString
HorizantalAlignmentHorizontal alignment of cell contents within the specified range. It determines how the content (such as text or numbers) is positioned within each cell horizontally. Possible values include left, center, right, justified, or distributed.Data InHorizantalAlignment
VerticalAlignmentVertical alignment of cell contents within the specified range. It determines how the content is positioned within each cell vertically. Possible values include top, middle, bottom, or justified.Data InVerticalAlignment

SetCellColor

Sets a color given in the Color parameter on a particular cell specified in the CellName parameter in a worksheet.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet where the cell is located.Data InString
CellNameIndicates the name or reference of the cell for which the color will be set.Data InString
ColorSpecifies the RGB color value to be applied to the cell.Data InExcelRgbColor
ReturnReturns boolean value indicating if the formula is set for a particular cell provided.Data OutBoolean

SetCellFormula

Assigns a formula to a specified cell in the Excel file. This method requires the SheetName, CellName, and Formula parameters to determine the worksheet, cell, and formula to be set, respectively.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet where the action will be performed.Data InString
CellNameThe cell within the worksheet where the operation will take place.Data InString
FormulaThe mathematical or logical expression to be applied to the specified cell.Data InString
ReturnReturns boolean value indicating if the formula is set for the specified cell.Data OutBoolean

SetCellValue

Assigns a value to a specific cell in a worksheet, replacing any existing content in that cell.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet that contains the source data.Data InString
CellNameThis parameter indicates the reference or identifier of the target cell within the specified worksheet. It can be represented by the cell address (e.g., 'A1', 'B2', 'C3').Data InString
ValueValue that will be assigned to the specified cell which can be of any data type supported by Excel, including numbers, text, dates, formulas, or logical values.Data InString

SetCellValues

Sets values in multiple cells as configured in the method editor dialog within a specified sheet.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet where the cell values will be set.Data InString

SetCellValuesIfRowHas

Scans the specified sheet for a provided text, examining the designated column name from the indicated row index. If the text is found, it sets the value of the specified cell with the provided values. It returns true if the value was successfully set, otherwise false.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet to search within.Data InString
SearchTextThe text to search for within the specified column.Data InString
SearchColumnThe column where the search is conducted.ColumnName is an Enum data type that represents Excel columns from A to AZ.Data InColumnName
StartRowIndexThe row index from which the search begins.Data InInteger
ReturnReturns True if SearchText is found in the specified column. Else, it returns False.Data OutBoolean

SetColumnType

Modify the data type of a specified column within a worksheet. For example, users can convert a column containing numeric values to a text format or change a column of text data to numeric format. It is possible to adjust the data format to better suit analysis or reporting needs, ensuring consistency and accuracy in data representation. Useful for tasks such as data conversion, formatting, and manipulation in Excel.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet that contains the source data.Data InString
FormatTypeThe desired format type the column is converted to. This parameter determines how the data within the column is interpreted or displayed. Possible values may include numeric, text, date, time, currency, percentage, or custom formats.Data InString
ColumnThe column reference or identifier within the specified worksheet for which the data type is changed. It could be represented by the column letter (e.g., 'A', 'B', 'C').Data InString
ReturnReturns boolean value identifying if the column type has been set or not.Data OutBoolean

SetColumnWidth

Sets the width of all the columns provided in the width parameter.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet where the column width is adjusted.Data InString
WidthThe width in characters to which the column is set.Only integer value is accepted. Decimal values are not accepted.Data InInteger
ReturnReturns boolean value identifying if the column type has been set or not.Data OutBoolean

SetFilter

Applies a filter to a specific column. This method finds the worksheet based on the given sheet name and then applies the provided filter value.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet where the column is located.Data InString
ColumnNameColumn where the filter is applied.ColumnName is an Enum data type that represents Excel columns from A to AZ.Data InColumnName
FilterValueThe value to filter by within the identified column.Data InString

SetFilterByRow

Applies a filter to a specified column, starting from a given row number. This method finds the worksheet based on the given sheet name and then applies the provided filter value.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet that contains the source data.Data InString
RowNumberIndicates 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 InInteger
ColumnNameName 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 InColumnName
FilterValueValue 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 InString

SetFontStyle

Formats the cells within a specified range by setting parameters such as Color, FontStyle, FontName, Bold, and Underline.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet where the font style will be set.Data InString
CellRangeThe range of cells for which the font style will be set.Data InString
ColorSpecifies the RGB color value of the font.Data InExcelRgbColor
FontSizeSpecifies the size of the font. The default value is 11.Data InInteger
FontNameSpecifies the name of the font. The default value is Calibri.Data InString
BoldIndicates whether the font should be bold. The default value is False.Data InBoolean
UnderlineSpecifies the underline style for the font. The default value is None.Data InUnderline

SetRowHeight

Modifies the height of a specific row within an Excel worksheet.

ParameterDescriptionData Port TypeData type
SheetNameThe name of the worksheet where the rows are located.Data InString
HeightSpecifies the desired height.Data InInteger
StartIndexThe starting row index.Data InString
EndIndexThe ending row index.Data InString
ReturnReturns boolean value indicating if the row height was set successfully or not.Data OutBoolean

SetRowValues

Sets values for a specific row in an Excel spreadsheet. By default, when the RowIndex parameter is set to -1, the function inserts the values at the end of the spreadsheet. This means that if you don't specify a specific row index, the values are appended to the bottom of the existing data in the spreadsheet.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet that contains the source data.Data InString
RowNumberDenotes row number where the values will be set or updated. In Excel, rows are numbered sequentially from top to bottom, starting with 1 by specifying the RowNumber, you indicate the specific row where the values should be placed. If -1 is passed as the RowNumber, it typically indicates that the values will be inserted at the end of the spreadsheet.Data InInteger

Sort

Organizes data within a specified cell range in either ascending or descending order.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet where the data will be sorted.Data InString
CellRangeThe range of cells containing the data to be sorted.Data InString
ColumnNameThe 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 InColumnName
SortingOrderThe sorting order \(ascending or descending\) for the data.Data InSortingOrder

VLookUp

Searches for a specific value in the first column of a specified cell range and then returns a corresponding value from a column you designate within the same row.

ParameterDescriptionData Port TypeData type
SheetnameName of the worksheet to search within.Data InString
SearchTextThe text to search for within the specified column.Data InString
LookupRangeRange to scan for the text.Data InString
ApproximateMatchThis is a logical value that specifies whether you want an exact match or an approximate match.Data InBoolean
ReturnReturns boolean value indicating if macro was successfully run or not.Data OutBoolean

WrapText

Enable text wrapping for all cells in a specified row in an Excel worksheet. Text wrapping ensures that long text strings are displayed within the cell boundaries, automatically adjusting the row height to accommodate the wrapped text. By using the WrapText method, users can improve the readability of their data by ensuring that all text is fully visible within each cell, even if it extends beyond the cell's original width. This can be particularly useful for displaying lengthy text entries or multi-line content within spreadsheet cells.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet that contains the source data.Data InString
RowNumberThe row number within the specified worksheet where text wrapping is set for all cells in that row.Data InInteger

WriteToRange

Writes a datatable provided in the Data parameter into a worksheet starting from the cell provided in the CellName parameter. Headers can also be included by setting the IncludeHeaders parameter.

ParameterDescriptionData Port TypeData type
SheetNameName of the worksheet on which the data is written.Data InString
CellNameName of the cell on which the data is written.Data InString
DataData that is written.Data InData Table
IncludeHeadersBoolean value that Indicates whether to include headers when writing the data. The default value is set to True.Data InBoolean

Parent Topic:Microsoft Excel