Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2006

Tip: Looking for answers? Try searching our database.

Table row fheight

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jean-Yves - 21 Aug 2006 11:52 GMT
Hello,

I tried to make a macro to synchronuse the height of rows of 2 tables being
visible at the same time. eg
Left page : program                 Right page : remards
________________                _______________
09:00 start                                 book rooms
briefing
_________________              _______________
10:00 coffee brak
_________________              _______________
etc

But I cannot not get the height if the HeightRule is set to
wdRowHeightAtLeast or wdRowHeightAuto.

Any other way ?
Regards

Jean-Yves Tfelt
Jezebel - 21 Aug 2006 12:04 GMT
It's an annoying shortcoming in Word that there's no easy way to determine
the height of a table row. One option is to use the
Information(wdVerticalPositionRelativeToPage) function -- position the
cursor at the start of the row below and check where you are on the page.

> Hello,
>
[quoted text clipped - 16 lines]
>
> Jean-Yves Tfelt
Jean-Yves - 21 Aug 2006 12:37 GMT
Hi,

Seems to be missing indeed.
I wanted to mirror exactly the two pages ...
Something like
Sub test
Dim x, y
For x = 1 To ActiveDocument.Tables.Count - 1
  For y = 1 To ActiveDocument.Tables(x).Rows.Count
     ActiveDocument.Tables(x + 1).Rows(y).HeightRule = wdRowHeightExactly
     ActiveDocument.Tables(x + 1).Rows(y).Height =
ActiveDocument.Tables(x).Rows(y).Height
  Next y
Next x
End Sub
Thank you for the input
Jean-Yves

> It's an annoying shortcoming in Word that there's no easy way to determine
> the height of a table row. One option is to use the
[quoted text clipped - 21 lines]
>>
>> Jean-Yves Tfelt
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.