
Page Number of Displayed (not Selected) Page
If that's all you need, then you can use the following
If Selection.Information(wdHorizontalPositionRelativeToPage) = -1 Then
'Cursor is not on screen
End If
--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
Word FAQs at http://www.multilinker.com/wordfaq
Please post any follow-up in the newsgroup. I do not reply to Word questions
by email
Quote:
> Dave
> but that's just the ticket!! (I think)
> I only need it to warn users when the active page is not the visible
page -
> it certainly produced a sensible result when I tested it.
> MANY THANKS
> Tim
> > Hi Tim,
> > I've poked around a little more and I've come up with a solution that's
> > imperfect:
> > MsgBox (ActiveWindow.VerticalPercentScrolled / 100) * _
> > Selection.Information(wdNumberOfPagesInDocument) + 1
> > Here's how it's imperfect. Sometimes, I get results like the following:
> > 1.95
> > Scroll down by one click and get the next result
> > 2
> > For both, however, the statusbar indicates that I'm on
> > Page 1 Sec 1 1/5
> > HTH
> > > Hi
> > > is there any syntax to obtain the page number of the CURRENTLY
DISPLAYED
> > > text in document. Thus for example, the selected part may be page 1,
but
> > the
> > > scroll bars be used to display page 4 without selecting it.
> > > Any help gratefully received
> > > Tim