VBA in Word2000 -- How do you set the insertion point for page break related to a word in a doc text

PedCarPC
PedCarPC used Ask the Experts™
on
Using Word 2000, I am merging/combining a number of word documents into one document. In one section of the combined documents I want to insert a page break after a word or phrase. I have located the word/phrase where the page break is to occur. I can insert text at the point using i.e.  "Selection.InsertAfter "Text to mark pape break"  but when I use a insert break i.e.  "Selection.InsertBreak  Type:wdPageBreak"   the page break occurs at the beginning of the section, not at the spot where text would be inserted.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2006
Commented:
Hello PedCarPC,

you could try

  With Selection.Range
    .InsertBreak Type:=wdPageBreak
  End With


HAGD:O)Bruintje
No comment has been added lately, so it's time to finalize this question.
Please leave any recommendations within the next seven days as to who deserves the points, or if they should be refunded.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

RavenOfThought
EE Cleanup Volunteer

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial