This documentation is archived and is not being maintained.

PointsToScreenPixelsY Method

Office 2003

Converts a vertical measurement from points to pixels. Used to return a vertical screen location for a text frame or shape. Returns the converted measurement as a Single.


expression    Required. An expression that returns a DocumentWindow object.

Points       Required Single. The vertical measurement (in points) to be converted to pixels.


This example converts the width and height of the selected text frame bounding box from points to pixels, and returns the values to myXparm and myYparm.

With ActiveWindow
    myXparm = .PointsToScreenPixelsX _
    myYparm = .PointsToScreenPixelsY _
End With