If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Make cell perfectly square

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-11-05, 11:14
jrn0074 jrn0074 is offline
Registered User
 
Join Date: Aug 2003
Posts: 123
Question Make cell perfectly square

What are the cell height and width for making a cell perfectly square? The closest I can seem to get is width=3, height=15.
Reply With Quote
  #2 (permalink)  
Old 01-11-05, 16:31
surfacesys surfacesys is offline
Registered User
 
Join Date: Mar 2004
Location: Greenville, SC
Posts: 271
We use a for for drawing. I came up with 2.88 by 20.5. We have graph paper that I compared it to.
__________________
Gotta to do some code
Reply With Quote
  #3 (permalink)  
Old 01-11-05, 17:36
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
You can use this VBA code:

Code:
Sub MakeSquare()
    Dim WPChar As Double
    Dim DInch As Double
    Dim Temp As String

    Temp = InputBox("Height and width in inches?")
    DInch = Val(Temp)
    If DInch > 0 And DInch < 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
End Sub
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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