Skip to main content

Format Excel Cells

Description

Applies specified formatting to the specified cell(s). You can either specify a single cell, range of cells, or comma-separated cells.

You can specify the format settings to be applied to the selected cell(s) by clicking on the Format Settings button available as part of the body of this activity. This will bring up the Format Settings dialog similar to Microsoft Office Excel.

Formal Excel Cells Dialog

You are allowed to modify the following format settings:

Note: By default, all the format settings for a cell will be set to Do not change, which means the settings will be based on the existing settings of that cell. If you want to alter the settings, you need to select the new settings to be applied for that cell.

SettingCategoryDescription
Font NameFontSelect the font from the dropdown
Font StyleFontSelect the font style from the dropdown
Font SizeFontSelect the font size from the dropdown
Underline TypeFontSelect the underline type from the dropdown
ColorFontSelect the color from the color picker provided
EffectsFontEnable or disable following effects: Strikethrough, Superscript, Subscript
Horizontal AlignmentAlignmentSelect the alignment from the dropdown
Vertical AlignmentAlignmentSelect the alignment from the dropdown
IndentAlignmentSpecify the indentation to be applied on the selected alignment
OrientationAlignmentSpecify the text orientation in degrees
Text ControlAlignmentEnable or disable text controls: Wrap Text, Shrink to fit
Left Border - Line StyleBorderSelect the line style to be applied for the left border for the cell(s) from the dropdown
Left Border - ColorBorderSpecify the border color from the color picker
Right Border - Line StyleBorderSelect the line style to be applied for the right border for the cell(s) from the dropdown
Right Border - ColorBorderSpecify the border color from the color picker
Bottom Border - Line StyleBorderSelect the line style to be applied for the Bottom border for the cell(s) from the dropdown
Bottom Border - ColorBorderSpecify the border color from the color picker
Top Border - Line StyleBorderSelect the line style to be applied for the top border for the cell(s) from the dropdown
Top Border - ColorBorderSpecify the border color from the color picker
Inner Vertical Border - Line StyleBorderSelect the line style to be applied for the inner vertical border for the cell(s) from the dropdown
Inner Vertical Border - ColorBorderSpecify the border color from the color picker
Inner Horizontal Border - Line StyleBorderSelect the line style to be applied for the inner horizontal border for the cell(s) from the dropdown
Inner Horizontal Border - ColorBorderSpecify the border color from the color picker
Diagonal Border - Line StyleBorderSelect the line style to be applied for the diagonal border for the cell(s) from the dropdown
Diagonal Border - ColorBorderSpecify the border color from the color picker
Background ColorFillSpecify the background color to be applied for the cell(s)
Pattern TypeFillSelect the fill pattern from the dropdown
Pattern ColorSpecify the pattern color from the color picker.

Properties

Input

  • Cells - The range of cells or single cell or comma-separated cells you want to format.
  • Spreadsheet - The Excel spreadsheet instance.

Misc

  • DisplayName – Add a display name to your activity.
  • Private – If selected, the variables and argument values will no longer be logged at the Verbose level.

Optional

  • Sheet Name – Specify the spreadsheet name where the cell(s) need to be formatted. By default, it will perform the formatting on the first spreadsheet in the Workbook.
  • Continue On Error – Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False.

    Note: If this activity is included in Try Catch and the value of this property is True, no error is caught when the project is executed.

Example

Download Example

Format Excel Cells