Selecting Pages

S

stubbly

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
 
H

Helmut Weber

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
 

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