What page am I? [Word, Office 97]

P

Paul Blay

My intent is to do the following :

- Search for certain phrase in a document.
- Determine what page the selection is on.
- Use that information to print a range of pages.

It's step two I can't work out.

I've looked through a lot of help topics but all the 'page' related
stuff seems to be unrelated to what I want (Page object,
PageNumbers etc.)

This is something so basic, I can't believe it's not in there /somewhere/.
 
P

Paul Blay

My intent is to do the following :

- Search for certain phrase in a document.
- Determine what page the selection is on.
- Use that information to print a range of pages.

It's step two I can't work out.

I've looked through a lot of help topics but all the 'page' related
stuff seems to be unrelated to what I want (Page object,
PageNumbers etc.)

This is something so basic, I can't believe it's not in there /somewhere/.

Never mind. I worked out a workaround.
 
J

Jonathan West

There's no Page object or Pages collection. You can find out what page the
cursor is on by reading the Selection.Information(wdActiveEndPageNumber)
property or the Selection.Information(wdActiveEndAdjustedPageNumber)
property
 
P

Paul Blay

There's no Page object or Pages collection.

Technically speaking there is, but it's got nothing to do with the pages of a
Word document.
You can find out what page the
cursor is on by reading the Selection.Information(wdActiveEndPageNumber)
property or the Selection.Information(wdActiveEndAdjustedPageNumber)
property

Thanks. As it happens I don't need to know this now, but no doubt
it will come in useful sometime.
 

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