column widths and row heights

G

Guest

based on 100% view, when u set the column width to say 12 units and the row
height to, for example, 15...

what is the actual dimensions in reality in mm.
ie, how can i get the required number to ensure that row and colms are
exactly 2 mm in width and height


pat
 
G

Gord Dibben

Column width and row heights defaults are not in inches or mm.

The number that appears in the Standard column width box is the average number
of digits 0-9 of the standard font that fit in a cell.

Row heights are measured in points or pixels. There are 72 points to an inch
and "maybe" 96 pixels to the inch.

For an interesting and enlightening discussion on this subject see

http://snipurl.com/dzz8

If you want to use VBA to set height and width in mm....................

Ole Erlandson has code for setting row and column dimensions.

http://www.erlandsendata.no/english/index.php?d=envbawssetrowcol


Gord Dibben Excel MVP
 
G

Guest

this is what i actually had to do... set the column widths and row heights
for many columns,, the base code now looks like::

Sub ChangeWidthAndHeight()
Dim colNo As Long
Dim rowNo As Long
colNo = 1
rowNo = 1
Do While colNo < 46

If colNo > 0 Or colNo < 46 Then
SetColumnWidthMM colNo, 2

Else
Exit Do
End If

If colNo > 0 Or colNo < 26 Then
SetRowHeightMM colNo, 2
End If
colNo = colNo + 1
Loop

End Sub
 
G

Guest

Adelaide is probably a long way away from wehrever u reside!


have a great day


pat
 

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