View Single Post
 
Old Yesterday, 01:01 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,489
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by gmaxey View Post
Paul, I have tested and rested with a simple document with one 2 x 2 table where the text in the target cell splits across a page. In every instance without using "<> p" I do not get the expected count.


In one test there were two lines of text on the first page and 3 lines on the second page using either "< p" or "> P" the return is 2. Only with using "<> p" do I get the expected return of 5.
Curious. For me the code works just fine with:
Code:
If .Characters.First.Information(wdVerticalPositionRelativeToPage) > p
returning 51 on a 2*2 table spanning two pages.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote