Question How to use generate MS Word Doc with varying page orientation.

tzambora

New member
Joined
Apr 9, 2010
Messages
1
Programming Experience
Beginner
I'm a complete beginner to programming so please bare with me!

I'm creating a programme which generates a document in MS Word. The majority of the pages need to set to portrait however the last few need to be landscape.

Any ideas on how I can set this up, when I use the code below it sets all pages in the document and no idea how to specify just one.


'Page Setup
With WordDoc
.PageSetup.PaperSize = WdPaperSize.wdPaperA4
.PageSetup.Orientation = WdOrientation.wdOrientPortrait
End With

Thanks :eek:
 
Back
Top