Seems such a simple request, but I cannot find a simple answer.
quot;Toddquot; wrote:
... How can I easily make cells in Excel that are square?
gt; Seems such a simple request, but I cannot find a simple answer.
Try the response by PaulB in this thread:
tinyurl.com/8ytqu
where he posts a sub MakeSquare for the purpose
(sub is pasted below for easy ref)
Steps
--------
Select the range (or try selecting entire sheet)
Run the sub by pressing Alt F8,
select quot;MakeSquarequot; in the Macro dialog, click Run
Answer the inputbox by entering say: 0.1, 0.1
then click OK
When the sub completes, you'd get the result !
'----- sub posted by Paul B ---
Sub MakeSquare()
Application.ScreenUpdating = False
Dim WPChar As Double
Dim DInch As Double
Dim Temp As String
Temp = InputBox(quot;Height and width in inches?quot;)
DInch = Val(Temp)
If DInch gt; 0 And DInch lt; 2.5 Then
For Each c In ActiveWindow.RangeSelection.Columns
WPChar = c.Width / c.ColumnWidth
c.ColumnWidth = ((DInch * 72) / WPChar)
Next c
For Each r In ActiveWindow.RangeSelection.Rows
r.RowHeight = (DInch * 72)
Next r
End If
Application.ScreenUpdating = True
End Sub
'------------
--
Max
Singapore
savefile.com/projects/236895
xdemechanik
---
select all;
format; row height set to 72 pts
column width set to 12 pts
displys cells 1quot; by 1quot;
quot;Toddquot; wrote:
gt; Seems such a simple request, but I cannot find a simple answer.
How do you propose setting the column width to 12 points???
Alan Beban
JEV wrote:
gt; select all;
gt; format; row height set to 72 pts
gt; column width set to 12 pts
gt;
gt; displys cells 1quot; by 1quot;
gt;
gt;
gt;
gt; quot;Toddquot; wrote:
gt;
gt;gt; Seems such a simple request, but I cannot find a simple answer.
If you can get your hands on a Mac, XL2004 by default allows you to set
row height and column width in inches/centimeters.
In article gt;,
Todd gt; wrote:
gt; Seems such a simple request, but I cannot find a simple answer.
The underlying problem is that Excel measures Row Height in picas and Column
Width in number of standard characters.
There are 72 picas (vertical) to the inch, and 12 characters (horizontal) to
the inch. So for a square cell, the ratio of the NUMBERS for Row
Height/Column Width must be 1:6. As JEV wrote, for a 1 inch square cel,l set
RH = 72, CW =12.
For a 1/2 quot; square cell, set RH=36, CW=6.
Mike
quot;JEVquot; wrote:
gt; select all;
gt; format; row height set to 72 pts
gt; column width set to 12 pts
gt;
gt; displys cells 1quot; by 1quot;
gt;
gt;
gt;
gt; quot;Toddquot; wrote:
gt;
gt; gt; Seems such a simple request, but I cannot find a simple answer.
MichaelRobert wrote:
gt; The underlying problem is that Excel measures Row Height in picas and Column
gt; Width in number of standard characters.
gt;
gt; There are 72 picas (vertical) to the inch, and 12 characters (horizontal) to
gt; the inch. So for a square cell, the ratio of the NUMBERS for Row
gt; Height/Column Width must be 1:6. As JEV wrote, for a 1 inch square cel,l set
gt; RH = 72, CW =12.
gt; For a 1/2 quot; square cell, set RH=36, CW=6.
gt;
gt; Mike
gt;
gt; quot;JEVquot; wrote:
gt;
gt;gt; select all;
gt;gt; format; row height set to 72 pts
gt;gt; column width set to 12 pts
gt;gt;
gt;gt; displys cells 1quot; by 1quot;
gt;gt;
gt;gt;
gt;gt;
gt;gt; quot;Toddquot; wrote:
gt;gt;
gt;gt;gt; Seems such a simple request, but I cannot find a simple answer.
Depending on the reason you want square cells, you may want to create a
table in Word, where it's very easy to specify column height and row
width in inches or your default Windows measurement.
You can also search the Internet for either add-ins or macros to create
square cells in Excel.
Quattro Pro also makes it easy to create square cells in a spreadsheet.
Bill
In addition to this, if you want them to print exactly square, you will
need to print a sample and then adjust the Cell size to correct back to
a square.
MichaelRobert wrote:
gt; The underlying problem is that Excel measures Row Height in picas and Column
gt; Width in number of standard characters.
gt;
gt; There are 72 picas (vertical) to the inch, and 12 characters (horizontal) to
gt; the inch. So for a square cell, the ratio of the NUMBERS for Row
gt; Height/Column Width must be 1:6. As JEV wrote, for a 1 inch square cel,l set
gt; RH = 72, CW =12.
gt; For a 1/2 quot; square cell, set RH=36, CW=6.
gt;
gt; Mike
gt;
gt; quot;JEVquot; wrote:
gt;
gt;
gt;gt;select all;
gt;gt;format; row height set to 72 pts
gt;gt;column width set to 12 pts
gt;gt;
gt;gt;displys cells 1quot; by 1quot;
gt;gt;
gt;gt;
gt;gt;
gt;gt;quot;Toddquot; wrote:
gt;gt;
gt;gt;
gt;gt;gt;Seems such a simple request, but I cannot find a simple answer.In addition to Bob's addition.
Row heights are measured in points or pixels. There are 72 points to an
inch and quot;maybequot; 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.
When dragging the column width you will see two numbers.........one is width
as above, the other is pixels.
For an interesting and enlightening discussion on this subject see
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.
www.erlandsendata.no/english/...vbawssetrowcol Gord Dibben Excel MVP
On Wed, 04 Feb 2009 12:41:08 -0600, Bob I gt; wrote:
gt;In addition to this, if you want them to print exactly square, you will
gt;need to print a sample and then adjust the Cell size to correct back to
gt;a square.
gt;
gt;MichaelRobert wrote:
gt;
gt;gt; The underlying problem is that Excel measures Row Height in picas and Column
gt;gt; Width in number of standard characters.
gt;gt;
gt;gt; There are 72 picas (vertical) to the inch, and 12 characters (horizontal) to
gt;gt; the inch. So for a square cell, the ratio of the NUMBERS for Row
gt;gt; Height/Column Width must be 1:6. As JEV wrote, for a 1 inch square cel,l set
gt;gt; RH = 72, CW =12.
gt;gt; For a 1/2 quot; square cell, set RH=36, CW=6.
gt;gt;
gt;gt; Mike
gt;gt;
gt;gt; quot;JEVquot; wrote:
gt;gt;
gt;gt;
gt;gt;gt;select all;
gt;gt;gt;format; row height set to 72 pts
gt;gt;gt;column width set to 12 pts
gt;gt;gt;
gt;gt;gt;displys cells 1quot; by 1quot;
gt;gt;gt;
gt;gt;gt;
gt;gt;gt;
gt;gt;gt;quot;Toddquot; wrote:
gt;gt;gt;
gt;gt;gt;
gt;gt;gt;gt;Seems such a simple request, but I cannot find a simple answer.
- Oct 22 Sun 2006 20:09
How can I easily make cells in Excel that are square?
close
全站熱搜
留言列表
發表留言