ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel 2000: Points vs. Pixels (https://www.excelbanter.com/excel-programming/310177-excel-2000-points-vs-pixels.html)

Mike Mertes

Excel 2000: Points vs. Pixels
 
Is there a way to set row height and column width in pixels, rather than in
points?

It appears that the .ColumnWidth/.Width and .RowHeight/.Height properties
operate only in points.

TIA!
-Mike Mertes



Jon Peltier[_8_]

Excel 2000: Points vs. Pixels
 
Hi Mike -

..ColumnWidth works in zeros, that is, the number of zero characters of
the default font. Most everything else goes by points. I've found the
conversion to be 0.75 points per pixel, 72 points per inch/96 pixels per
inch (96/inch is a standard pixel resolution). Different Windows
settings may affect this: I read recently that using large fonts changes
this to 0.8.

There are a couple of activewindow properties, PointsToScreenPixelsX and
PointsToScreenPixelsY, which tell you the dimensions of an object in
pixels, but I've never had it return any values other than zero.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Mike Mertes wrote:

Is there a way to set row height and column width in pixels, rather than in
points?

It appears that the .ColumnWidth/.Width and .RowHeight/.Height properties
operate only in points.

TIA!
-Mike Mertes





All times are GMT +1. The time now is 11:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com