Height of row of table

E

Elbert

Hi,

In Word, I recorded a macro that sets the height of a row
of a table to "at least 1 inch." Here's the macro:

Selection.Tables(1).Rows.HeightRule = wdRowHeightAtLeast
Selection.Tables(1).Rows.Height = InchesToPoints(1)

Is there a way to modify this macro so that it will set
the row height to at least whatever the height is now?
For example, suppose I've typed in enough stuff in the row
so that Word has expanded the height of the row to 2.5
inches. I'd like the macro to figure out what the current
height is (2.5 inches in this example) and set the row to
always be at least that high.

TIA,

Elbert
 
W

Word Heretic

G'day "Elbert" <[email protected]>,


Selection.Tables(1).Rows.HeightRule = wdRowHeightAtLeast
If Selection.Tables(1).Rows.Height < InchesToPoints(1) then _
Selection.Tables(1).Rows.Height = InchesToPoints(1)


Hi,

In Word, I recorded a macro that sets the height of a row
of a table to "at least 1 inch." Here's the macro:

Selection.Tables(1).Rows.HeightRule = wdRowHeightAtLeast
Selection.Tables(1).Rows.Height = InchesToPoints(1)

Is there a way to modify this macro so that it will set
the row height to at least whatever the height is now?
For example, suppose I've typed in enough stuff in the row
so that Word has expanded the height of the row to 2.5
inches. I'd like the macro to figure out what the current
height is (2.5 inches in this example) and set the row to
always be at least that high.

TIA,

Elbert

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
wordheretic.com

Replies offlist may require payment.
 
E

Elbert

Hi Steve,

Thanks for the suggestion. It's on the right track, but
doesn't do exactly what I want. It seems to set the
minimum height of the row to about one inch, no matter how
high the row is now. What I need is for it to find the
current height of the row, and set the minimum height to
that amount.

Any way to do that?

Thanks,
Elbert
 
W

Word Heretic

G'day "Elbert" <[email protected]>,

I'd have to charge to find that out.


Hi Steve,

Thanks for the suggestion. It's on the right track, but
doesn't do exactly what I want. It seems to set the
minimum height of the row to about one inch, no matter how
high the row is now. What I need is for it to find the
current height of the row, and set the minimum height to
that amount.

Any way to do that?

Thanks,
Elbert

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
wordheretic.com

Replies offlist may require payment.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top