Change the orientation of a word document with access to print in booklet mode


Joined
Dec 20, 2018
Messages
1
Reaction score
0
hello, my code allows me to open the document but it can not switch the document in landscape mode. he remains in portrait

My code:
Dim xlApp As Object
Dim xlBook As Object
Dim Feuille As Object
Dim Feuille2 As Object

Set xlApp = CreateObject("Word.application")

xlApp.Visible = True


Set xlBook = xlApp.Documents.Open("xxxxxx.doc")



Pause (1)


xlBook.PageSetup.Orientation = wdOrientLandscape
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top