title | keywords | f1_keywords | ms.prod | api_name | ms.assetid | ms.date | ||
---|---|---|---|---|---|---|---|---|
Window.Resize Method (Publisher) |
vbapb10.chm262164 |
|
publisher |
|
478e5f05-a2f9-c3b0-5dd0-3248272b2c37 |
06/08/2017 |
Sizes the Microsoft Publisher application window.
expression. Resize( Width, Height)
_expression_A variable that represents a Window object.
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Width | Required | Long | The width of the window, in points. |
Height | Required | Long | The height of the window, in points. |
If the window is maximized or minimized, an error occurs.
Use the Width and Height properties to set the window width and height independently.
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