• Auto macro for all docs

    Author
    Topic
    #457992

    I want to try having Word automatically zoom to fit all docs opened – including new docs. I assume that the following line of code will do that. How can I get that code (or alternative code) to execute when opening / loading all docs?
    ActiveWindow.ActivePane.View.Zoom.PageFit = wdPageFitBestFit.

    Viewing 0 reply threads
    Author
    Replies
    • #1149984

      I want to try having Word automatically zoom to fit all docs opened – including new docs. I assume that the following line of code will do that. How can I get that code (or alternative code) to execute when opening / loading all docs?
      ActiveWindow.ActivePane.View.Zoom.PageFit = wdPageFitBestFit.

      Create two macros in a standard module in your Normal.dot template (or Normal.dotm for Word 2007):

      Sub AutoOpen()
      ActiveWindow.ActivePane.View.Zoom.PageFit = wdPageFitBestFit
      End Sub

      Sub AutoNew()
      ActiveWindow.ActivePane.View.Zoom.PageFit = wdPageFitBestFit
      End Sub

    Viewing 0 reply threads
    Reply To: Auto macro for all docs

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: