Points per pixel?

M

Milos Setek

Hello all,

I am trying to get the points per pixel code going by doing this

With ActiveWindow
lWinWidth = .PointsToScreenPixelsX(.Selection.Width)
lWinHeight = .PointsToScreenPixelsY(.Selection.Height)
End With

But when I do a debug.print on lWinWidth or lWinHeight I get 0. There is a
chart on the worksheet and it is selected.

Does anyone know why or is there another way to get this number ?

Thanks for any help.
Milos.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top