Screen.Height (property)

Syntax

Screen.Height

Description

Returns the height of the screen in pixels as an Integer.

Comments

This property is used to retrieve the height of the screen in pixels. This value will differ depending on the display resolution.

This property is read-only.

Example

This example displays the screen height in pixels.

Sub Main()

  MsgBox "The Screen height is " & Screen.Height & " pixels."

End Sub

See Also

Screen.Width (property).

More information

S