Syntax

expression.PointsToScreenPixelsY(Points)

expression A variable that represents a Window object.

Parameters

Name Required/Optional Data Type Description
Points Required Long The number of points vertically along the left edge of the document window, starting from the top.

Return Value
Long

Example

This example determines the height and width (in pixels) of the selected cells in the active window and returns the values in the lWinWidth and lWinHeight variables.

Visual Basic for Applications
With ActiveWindow lWinWidth = _ .PointsToScreenPixelsX(.Selection.Width) lWinHeight = _ .PointsToScreenPixelsY(.Selection.Height) End With
points to screen pixels y Points To Screen Pixels Y Method PointsToScreenPixelsY PointsToScreenPixelsY Method

See also: