Re: How to find programmatically Word table row height?

From: Erez Harari (ErezHarari_at_discussions.microsoft.com)
Date: 01/20/05


Date: Wed, 19 Jan 2005 22:09:01 -0800

Helmut Weber,
Hi,

The problem is that the Height property of the table rows returns always the
same incorrect value (whatever units it means), I know that the values is
incorrect, because some rows are about 1 centimeter and other rows are about
20 centimeters height. Each row consists on same number of cells of the same
height and the Height property of the cells returns the same wrong value
(9999999 or 12) as the row's Height property.
I don't have to change the row's height. I only have to find what it is.

Erez Harari

"Helmut Weber" wrote:

> Hi Erez,
>
> mostly, if not always, Word's answer to a question is "9999999",
> if there would be more than one answer,
> or if the answer would be "undefined".
>
> Not perfectly suitably here, though, as at the moment
> of asking, if the cells don't have different height,
> there would be a unique answer.
>
> What values do you get?
>
> Here and now, if I set the height of a row to 12 pt,
> MsgBox ...Height returns 12.
>
> If you set the height in inches or centimeters,
> there may be problems concerning fractions.
>
> Greetings from Bavaria, Germany
>
> Helmut Weber, MVP
> "red.sys" & chr(64) & "t-online.de"
> Word XP, Win 98
> http://word.mvps.org/
>



Relevant Pages

  • Re: Range(0,0).Select ?
    ... is incorrect -- I just didn't have the confidence to declare it as such myself! ... > 2) The Range statement cannot reference cells by row and column number, ... >>I have a macro I inherited with the code fragment below. ... >>with the Excel Help system and with my normal reference books. ...
    (microsoft.public.excel.programming)
  • Re: patterns
    ... Assuming the source list of numbers is in A1:A8 (w/o any blank cells). ... and tested with various sample data in A1:A8 ... The incorrect return triggered in F3 is: ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Row Formula
    ... An incorrect result? ... Did you enter the formula as an array? ... After typing the formula, instead of ... >> ie colums shown with values in cells A1 to L1 ...
    (microsoft.public.excel.misc)
  • Re: Offset Range
    ... Thanks Tom, I thought it was not working at first, but then I realized ... that what I asked you for was incorrect. ... The code is doing what I asked, however thats not what I need. ... If the condition is true it should clear all eight cells in the group, ...
    (microsoft.public.excel.programming)