Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pixels | Excel Discussion (Misc queries) | |||
change cell/s into perfect squares in mm/points/pixels in Excel 20 | Excel Discussion (Misc queries) | |||
pixels | New Users to Excel | |||
Pixels are the new pies | Charts and Charting in Excel | |||
some columns 30 characters 155 pixels others 310 pixels why | Excel Discussion (Misc queries) |