Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns or sets the height of the Protected View window. Read/write Long.
Syntax
expression.Height
expression An expression that returns a 'ProtectedViewWindow' object.
Remarks
You cannot set this property if the window is maximized or minimized. Use the UsableHeight property of the Application object to determine the maximum size for the window. Use the WindowState property to determine the window state.
Example
The following code example changes the height of the active Protected View window to fill the application window area.
With ActiveProtectedViewWindow
.WindowState = wdWindowStateNormal
.Height = Application.UsableHeight
End With
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.