Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Exact ratio of width to height to get a square cell?

What is the exact ratio of column width to row height to get an exact square
on printout with default margins and standard A4 paper?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Exact ratio of width to height to get a square cell?

Hi,

For a reason that was probably perfectly reasonable to Microsoft they use
different units of measure for column width (No of Characters in Courier 10)
and row height (Points)

A ratio of around 6.64/1 (H -W) will give you a pretty god square but you
can do it with a macro

right click the sheet tab, view code and paste this in. Select the cells you
want square and run it

Sub SqCells()
Inches = Val(InputBox("Height - width in inches?"))
If Inches 0 And Inches < 2.5 Then
For Each c In Selection
myval = c.Width / c.ColumnWidth
c.ColumnWidth = ((Inches * 72) / myval)
Next c
For Each r In Selection
r.RowHeight = (Inches * 72)
Next r
End If
End Sub

Mike



"QG_RE" wrote:

What is the exact ratio of column width to row height to get an exact square
on printout with default margins and standard A4 paper?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Exact ratio of width to height to get a square cell?

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

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.

You can also measure column widths in pixels.

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 which you can convert to
inches.

Ole Erlandson has code for setting row and column dimensions.

http://www.erlandsendata.no/english/...vbawssetrowcol


Gord Dibben Excel MVP

On Wed, 19 Mar 2008 00:42:00 -0700, QG_RE
wrote:

What is the exact ratio of column width to row height to get an exact square
on printout with default margins and standard A4 paper?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 348
Default Exact ratio of width to height to get a square cell?

QG_RE wrote:
What is the exact ratio of column width to row height to get an exact square
on printout with default margins and standard A4 paper?

It's too bad that Quattro Pro has fallen into disuse. It is very easy to
set row height and column width in the same units with that program. QP
has also had 1,000,000 rows available for several years now.

Of course, there are other factors involved in which spreadsheet program
you may want to or be able to use.

Bill
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change height and width of a single cell R. Johnson Excel Discussion (Misc queries) 3 February 20th 08 07:34 PM
cell width and height Brian Brandt New Users to Excel 3 February 14th 06 10:57 AM
Cell Height & Width Equal CCW Excel Discussion (Misc queries) 3 January 12th 06 07:15 PM
What does the 8.43 and 12.75 represent in height and width of cell ljfrantz40 Excel Discussion (Misc queries) 2 October 17th 05 02:25 AM
Is it possible to lock the height and width of a cell? Kilgus Excel Discussion (Misc queries) 1 July 19th 05 08:53 PM


All times are GMT +1. The time now is 08:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"