Width Property

Width property as it applies to the Window object.

Returns a Double that represents the width of the specified window. Read-only.

expression.Width

*expression   * Required. An expression that returns a Window object.

Width property as it applies to the PivotAxisMember, PivotColumnMember, PivotFieldSet, PivotPageMember, PivotRowMember, PivotTable, and PivotTotal objects.

Returns or sets a Long that represents the width of the specified object. Read/write.

expression.Width

*expression   * Required. An expression that returns one of the above objects.

Width property as it applies to the PivotAggregate, PivotDetailCell, PivotResultAxis, PivotResultColumnAxis, PivotResultDataAxis, PivotResultFilterAxis, PivotResultGroupAxis, PivotResultLabel, PivotResultPageAxis, and PivotResultRowAxis objects.

Returns a Long that represents the width of the specified object. Read-only.

expression.Width

*expression   * Required. An expression that returns one of the above objects.

Width property as it applies to the Range object.

Returns a Variant that represents the width of the specified object. Read-only.

expression.Width

*expression   * Required. An expression that returns a Range object.

Remarks

The AutoFit property of the PivotTable list is set to False when the value of the Width property is changed.

Example

This example sets the width of the PivotTable list to 150 points.

PivotTable1.Object.Width = 150

Applies to | PivotAxisMember Object | PivotColumnMember Object | PivotDetailCell Object | PivotFieldSet Object | PivotPageMember Object | PivotResultAxis Object | PivotResultColumnAxis Object | PivotResultDataAxis Object | PivotResultFilterAxis Object | PivotResultGroupAxis Object | PivotResultLabel Object | PivotResultPageAxis Object | PivotResultRowAxis Object | PivotRowMember Object | PivotTable Object | PivotTotal Object | Range Object | Window Object

See Also | Height Property