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
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