Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

Pagebreak

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Claus Nielsen - 21 Mar 2005 23:10 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.