Screen.Width (property)

Syntax Screen.Width
Description Returns the width of the screen in pixels as an Integer .
Comments This property is used to retrieve the width 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 width in pixels.
Sub Main()
  MsgBox "The screen width is " & Screen.Width & " pixels."
End Sub
See Also Screen.Height (property).