S
stabilo
I'm looking a way to go thru my document and insert a page break Before a
certain word :
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "MYWORD"
.Replacement.Text = "^m"
.Forward = True
.Wrap = wdFindContinue
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
This works but "MYWORD" is replaced obviously by the page break, but I want
to keep "MYWORD".
I'm receiving some 1000 pages of raw data and I need to insert page breaks
before a certain word that separate the records. Thnks
certain word :
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "MYWORD"
.Replacement.Text = "^m"
.Forward = True
.Wrap = wdFindContinue
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
This works but "MYWORD" is replaced obviously by the page break, but I want
to keep "MYWORD".
I'm receiving some 1000 pages of raw data and I need to insert page breaks
before a certain word that separate the records. Thnks