Solved

Excel Row Column Pts to Inch

Posted on 2000-02-19
8
15,119 Views
Last Modified: 2011-08-18
Does any body know How to Convert
Excel Rows Height to Inches
Excel Column Width to Inches
Or Is there any formula to Convert
Row Col H W Points to Inches
0
Comment
Question by:deepakahuja
  • 3
  • 3
  • 2
8 Comments
 
LVL 9

Accepted Solution

by:
david_levine earned 20 total points
ID: 2538129
1 point =  20 twips
1 twip  =  1/1440 pouce (inch)

So... 72 points = 1 inch

You also posted your question twice so you should go to the other question and withdraw it.

David
0
 

Author Comment

by:deepakahuja
ID: 2538254
Hey David
Can You Explain Little bit More
It's not working that way in Excel
Rows and Columns have a different
set of nos. I don't know why.....
Col Width of 10 is lot more than
Row height of 10
I am cofused Please Explain Little More
about it
Thanks
0
 
LVL 13

Expert Comment

by:cri
ID: 2538275
XL: How Column Widths Are Determined in Excel  http://support.microsoft.com/support/kb/articles/Q73/5/91.ASP
0
 
LVL 9

Expert Comment

by:david_levine
ID: 2538291
I just found this searching for more details...

------------------------------
Making Squares
------------------------------
One of the (many) frustrating things about Excel is that it uses different units of measurement to specify the height of rows and the width of columns.
 
Row height is pretty straightforward--it is measured in points. Column width, however, is measured in character widths. If your Standard style is set to Courier 10, then a column width of 12 means that you can fit exactly twelve characters in a given column. For proportional fonts, the character 0 is used to count the characters. (Yup, it's absurd.)
 
This leads to problems if you want the height and width of a
particular cell to match, thereby making a square. Fortunately, with a little macro wizardry you can bypass this oddity of Excel and achieve the desired results. Consider the MakeSquare macro:
 
    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
 
This macro prompts you for the dimension of the square you want to create, and then calculates exactly how wide and high to set each cell. You can run the macro with a single cell selected, or you can make a larger selection set.
 
The "math magic" is done in the calculating of the WPChar variable. This is set to a value derived by dividing the width of the column in points (returned by the Width property) by the width of the column in characters (returned by the ColumnWidth property). This value, which is the number of points in a character at the current settings, is then used to calculate how many characters should be used to set the width in the next program line.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:deepakahuja
ID: 2539151
Thanks David
for the Square Macro
What I was trying to achieve
was to print Labels in Excel
instead of Word So I can use my Excel
data but unfortunately it seams
immpossible to format the rows and
columns to print Labels
Thanks again for all effort.....
0
 
LVL 13

Expert Comment

by:cri
ID: 2539526
Basically you have 2 options:

a) Mail merge your Excel data into Word and then use its Label feature. Please ask another question if you need assistance on this matter.

b) Not recommended but feasible: With some try and error you can format a worksheet such that the cell(s) will be printed ok. Whether you use one cell per label (*) or one cell per line is a matter of personal preference, I would take the latter unless you data structure does not allow it.

(*) Use the "&" operator (or the CONCATENATE function) to gather the data. Format the cell as word wrapping. As most probably the line breaks are not where you want them, use the following trick: In one cell, say A2, focus the formula bar and press Alt+Enter. This is equivalent to Shift+Enter in Word. Then use &$A$2 (or $A$2) to enforce wrapping.  
0
 

Author Comment

by:deepakahuja
ID: 2540459
Thanks Cri
0
 
LVL 13

Expert Comment

by:cri
ID: 2540633
You are welcome.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction It seems that at least a couple of times per month, I answer a question that requires automating Outlook from another Microsoft Office application, usually (although not always) to send one or more email messages.  For example: …
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now