Resize Method

Microsoft Publisher Visual Basic

expression.Resize(Width, Height)

expression    Required. An expression that returns one of the objects in the Applies To list.

Width   Required Long. The width of the window, in points.

Height   Required Long. The height of the window, in points.

Remarks

If the window is maximized or minimized, an error occurs.

Use the Width and Height properties to set the window width and height independently.

Example

This example resizes the Publisher application window to 7 inches wide by 6 inches high.

With Application.ActiveWindow
    .WindowState = wdWindowStateNormal
    .Resize Width:=InchesToPoints(7), Height:=InchesToPoints(6)
End With