Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.29 KB

Publisher.Window.Height.md

File metadata and controls

49 lines (33 loc) · 1.29 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Window.Height property (Publisher)
vbapb10.chm262151
vbapb10.chm262151
Publisher.Window.Height
3d47bb99-bab7-b5aa-c834-04bcd6e8b151
06/18/2019
medium

Window.Height property (Publisher)

Returns or sets a Long that represents the height (in points) of the window. Read/write.

Syntax

expression.Height

expression A variable that represents a Window object.

Remarks

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.

Example

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]