select all the words in a section/page

F

FotoArt

hello everyone

How could I, through code/macro, select the words in a section or a page.

Any help in the right direction will be appreciated.

thanx
ahmed
 
S

Stefan Blom

Word has special bookmarks which can do what you want. To select the
current section:

ActiveDocument.Bookmarks("\section").Select

To select the current page:

ActiveDocument.Bookmarks("\page").Select

But note that depending on what you are trying to accomplish, there
might be a better way than working with selections.

--
Stefan Blom
Microsoft Word MVP


in message
news:[email protected]...
 

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