Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PageBreak in Word.Application

Status
Not open for further replies.

mansii

Programmer
Oct 18, 2002
641
ID
Been googling for the solution with no luck.

Anyone knows how to insert in coding a pagebreak in Word document?

Something like

oWord.ActiveDocument.Paraghraps.Pagebreak.Insert()

[smile]

TIA
 
just go to word press record macro do control enter (pagebreak) press stop macro and see what the macro comes up with.

and this is it.

Code:
Selection.InsertBreak Type:=wdPageBreak

macrorecording is your best friend. (in VBA)



Christiaan Baes
Belgium

I just like this --> [Wiggle] [Wiggle]
 
Brilliant! (As Usual)
You just gave me much more than I expected.
Star!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top