Pagebreak

C

Claus Nielsen

Hello all

I'm having trouple finding out how to create a pagebreak i Word using a
macro...
Can anyone help?

Thanks!
Regards
 
T

Thierry Marneffe

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
 
C

CodeDawg

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
 

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