PointsToScreenPixels Documentation Incorrect
Thank you
--
Gary''s Student - gsnu200713
"Peter T" wrote:
PointsToScreenPixelsX (&Y) returns the distance in "points" from top left
corner of the window of the function' argument value.
Regards,
Peter T
"Gary''s Student" wrote in message
...
Consider this small test:
Sub Macro1()
Range("I6").Select
Columns("I:I").ColumnWidth = 10
Rows("6:6").RowHeight = 20
ActiveWindow.Zoom = 100
With ActiveWindow
lWinWidth = .PointsToScreenPixelsX(.Selection.Width)
lWinHeight = .PointsToScreenPixelsY(.Selection.Height)
End With
MsgBox (lWinWidth & " x " & lWinHeight)
ActiveWindow.Zoom = 50
With ActiveWindow
lWinWidth = .PointsToScreenPixelsX(.Selection.Width)
lWinHeight = .PointsToScreenPixelsY(.Selection.Height)
End With
MsgBox (lWinWidth & " x " & lWinHeight)
End Sub
The first msgbox gives:
84 x 151
the second ( with a much smaller cell) gives:
79x145
--
Gary''s Student - gsnu200713
|