Microsoft Word - Inserting manual page breaks in ms word document

Asked By Anjali agarwal on 13-Mar-13 06:07 PM

Hi All,

   I am trying to replace the page Break word in MS word document with actual PAGE Break so I wrote the macro below, but I am not getting the
desired results. I tried putting false instead of true for  .MatchWildCards=True, but that didn't work either. I just want to do page break
wherever I see the word -- PAGE Break -- in my MS word document.

With Selection.Find
    .Text = "-- PAGE Break --"
    .Replacement.Text ="^m"
    .Wrap = wdFindContinue
    .Format = False
    .MatchWholeWord= False

I spend lot of time figuring this out, but it seem that inserting page break through Macro is not working. I am using Office 2007(MS word 2007)

Any help will be grealy appreciated.