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