Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you for the suggestion.
When I try your example verbatim, I get "0 x 0" before and after the zoom. "Gary''s Student" wrote: 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Documentation | Excel Programming | |||
Documentation | Excel Programming | |||
PointsToScreenPixels for Excel97 | Excel Programming | |||
VBA Documentation | Excel Programming | |||
Documentation | Excel Programming |