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

Discussion in 'Access' started by ludovic, Dec 20, 2018.

  1. ludovic

    ludovic

    Joined:
    Dec 20, 2018
    Messages:
    1
    Likes Received:
    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
     
    ludovic, Dec 20, 2018
    #1
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.