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
 
Top