Hello all
I'm having trouple finding out how to create a pagebreak i Word using a
macro...
Can anyone help?
Thanks!
Regards
Thierry Marneffe - 22 Mar 2005 00:22 GMT
Hello
Paste the following code .. shamelessly taken from Macro Editor
Sub Break()
'
' Break Macro
' Macro recorded 3/22/2005 by Thierry Marneffe
'
Selection.InsertBreak Type:=wdPageBreak
End Sub
Thierry
> Hello all
>
[quoted text clipped - 4 lines]
> Thanks!
> Regards
CodeDawg - 22 Mar 2005 00:35 GMT
Claus,
Quoted from Word 2000 Help:
' Insert page Break at end of second paragragh
Set myRange = ActiveDocument.Paragraphs(2).Range
With myRange
.Collapse Direction:=wdCollapseEnd
.InsertBreak Type:=wdPageBreak
End With
Look up InsertBreak method and it will provide
further choices.
Regards
> Hello all
>
[quoted text clipped - 4 lines]
> Thanks!
> Regards