Results 1 to 2 of 2
  1. #1
    5 Star Lounger
    Join Date
    May 2001
    Location
    Patterson Lakes, Melbourne, Victoria, Australia
    Posts
    637
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Regards,
    Peter

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    [quote name='Peter Kinross' post='763212' date='03-Mar-2009 23:30']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.[/quote]
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •