API Reference

Cmdlet

Set-OfficeExcelRow

Aliases: ExcelRow

Writes a row of values to the current worksheet.

Remarks

Writes a row of values to the current worksheet.

Examples

Authored help example

Example 1: Write a row starting at column A.

PS>


ExcelSheet 'Data' { Set-OfficeExcelRow -Row 2 -Values 'North', 1200 }
        

Writes two values into row 2, columns A and B.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Set-OfficeExcelRow [-AutoFit] [-BackgroundColor <String>] [-Bold <Nullable`1>] [-ClearHeight] [-FirstColumn <Nullable`1>] [-FontName <String>] [-Height <Nullable`1>] [-Hidden <Nullable`1>] [-Italic <Nullable`1>] [-LastColumn <Nullable`1>] -Row <Int32> [-StartColumn <Int32>] [-Underline <Nullable`1>] [-Values <Object[]>] [-WrapText <Nullable`1>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

AutoFit SwitchParameter optionalposition: namedpipeline: False
Auto-fit row height after writing values and applying style.
BackgroundColor String optionalposition: namedpipeline: False
Apply a background color across the target row span.
Bold Nullable`1 optionalposition: namedpipeline: False
Apply or clear bold styling across the target row span.
ClearHeight SwitchParameter optionalposition: namedpipeline: False
Clear any custom row height.
FirstColumn Nullable`1 optionalposition: namedpipeline: False
First 1-based column affected by style options.
FontName String optionalposition: namedpipeline: False
Apply a font family across the target row span.
Height Nullable`1 optionalposition: namedpipeline: False
Explicit row height in points.
Hidden Nullable`1 optionalposition: namedpipeline: False
Hide or unhide the row. Use -Hidden:$false to unhide.
Italic Nullable`1 optionalposition: namedpipeline: False
Apply or clear italic styling across the target row span.
LastColumn Nullable`1 optionalposition: namedpipeline: False
Last 1-based column affected by style options.
Row Int32 requiredposition: 0pipeline: False
1-based row index.
StartColumn Int32 optionalposition: namedpipeline: False
Starting column index (1-based).
Underline Nullable`1 optionalposition: namedpipeline: False
Apply or clear underline styling across the target row span.
Values Object[] optionalposition: 1pipeline: False
Values to write across the row.
WrapText Nullable`1 optionalposition: namedpipeline: False
Apply or clear wrap text across the target row span.