Dec 8, 2005 #1 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() TIA
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() TIA
Dec 8, 2005 #2 chrissie1 Programmer Aug 12, 2002 4,517 BE 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] Upvote 0 Downvote
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]
Dec 9, 2005 Thread starter #3 mansii Programmer Oct 18, 2002 641 ID Brilliant! (As Usual) You just gave me much more than I expected. Star! Upvote 0 Downvote