title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Window.Height property (Publisher) |
vbapb10.chm262151 |
|
|
3d47bb99-bab7-b5aa-c834-04bcd6e8b151 |
06/18/2019 |
medium |
Returns or sets a Long that represents the height (in points) of the window. Read/write.
expression.Height
expression A variable that represents a Window object.
The valid range for the Height property depends on the size of the application workspace and the position of the object within the workspace.
For centered objects on non-banner page sizes, the Height property may be 0.0 to 50.0 inches. For centered objects on banner page sizes, the Height property may be 0.0 to 241.0 inches.
This example sets the height and width of the active window if the window is neither maximized nor minimized.
Sub SetWindowHeight()
With ActiveWindow
If .WindowState <> pbWindowStateNormal Then
.WindowState = pbWindowStateNormal
.Height = InchesToPoints(5)
.Width = InchesToPoints(5)
End If
End With
End Sub
[!includeSupport and feedback]