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 / November 2003

Tip: Looking for answers? Try searching our database.

Selecting Pages

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
stubbly - 29 Nov 2003 09:48 GMT
I am trying to develop a macro that copies or filters pages within
large document.  I would like to select the complete contents of a pag
and paste it to a separate document.  Idealy I'd like to supply a lis
of page numbers which are selected and exported automatically.

I've mastered finding a page and selecting text as well as exportin
the text, the problem though is I can't work out how to select th
complete contents of a page - each page has a varying number of lines
paragraphs.

Any help appreciated
Helmut Weber - 29 Nov 2003 23:55 GMT
Hi Stubbly,
as easy as that:
Selection.ExtendMode = false
Selection.GoTo What:=wdGoToPage, _
Which:=wdGoToNext, Name:="3"
Selection.ExtendMode = True
Selection.GoTo What:=wdGoToPage, _
Which:=wdGoToNext, Count:=1, Name:=""
selects page 3.
Greetings from Bavaria, Germany
Helmut Weber
"red.sys" & chr$(64) & "t-online.de"
Word 97, W98
 
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.