Resize Method

See Also Applies To Example Model

Sets the size (in screen pixels) of the Screen object display area.

object expression.Resize ([PixelsWide], [PixelsHigh])

object expression    Required. An object expression that evaluates to an object in the Applies To list.

PixelsWide    Optional Long. A whole number specifying the horizontal dimension in screen pixels. Defaults to 300.

PixelsHigh    Optional Long. A whole number specifying the vertical dimension in screen pixels. Defaults to 300.

Remarks

The Resize method only affects the size of the Screen display and does not affect the Screen coordinate system defined by the SetScale method of the Screen object.

Specify display dimensions in screen pixels assuming Excel is in a 100 percent zoom state.

A flexible alternative to using the Resize method is to adjust the Excel zoom percentage prior to running a simulation.

Example

The following example uses the Resize method changing the Screen display size.

World.Screen.Resize 500,500