Width Property [Application, AutoExcelWin, AutoWindow]

The Width property returns or sets the width of the window. Returns a Long.

Syntax

object.Width

object.Width = newVal

 

Parameter Type Description
newVal Long required, use pixels

 

Example 1

This example demonstrates how to return the Grapher application window height in pixels.

Debug.Print GrapherApp.Width

Example 2

This example demonstrates how to set the width of the Grapher application window to 700 pixels.

GrapherApp.Width = 700

 

Used by: Application object, AutoWindow object