Width Property

The Width property returns or sets the width of the line, page setup, selection, or object. Returns a Double.

Syntax

object.Width

object.Width = Width

 

Parameter Type Description
Width Double required, use page units

 

Remarks

For AutoLegend objects, the Height is automatically resized when the Width value is changed.

Example 1

This example demonstrates how to return the width of a line.

Debug.Print LineFormat.Width

Example 2

This example demonstrates how to set the width of a rectangle to five page units.

Rectangle.Width = 5

 

Used by: AutoAxis object, AutoLine object, AutoPageSetup object, AutoPlot object, AutoSelection collection, AutoShape object