locked
view/page width RRS feed

  • Question

  • Is there a way to set ms word to open all docs with the "page width" value in "view"?
    Thursday, June 21, 2012 6:43 PM

Answers

  • Create the following macro in your default template (Normal.dot in Word 2003 and before, Normal.dotm in Word 2007 and later):

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


    Regards, Hans Vogelaar

     
     
     
    If the setting should also apply to new documents, the same line of code must be added to an AutoNew sub as well.

    Stefan Blom, Microsoft Word MVP
    • Marked as answer by Rex Zhang Friday, June 29, 2012 1:05 AM
    Thursday, June 21, 2012 10:17 PM
  • Create the following macro in your default template (Normal.dot in Word 2003 and before, Normal.dotm in Word 2007 and later):

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


    Regards, Hans Vogelaar

    • Marked as answer by Rex Zhang Friday, June 29, 2012 1:05 AM
    Thursday, June 21, 2012 7:03 PM

All replies

  • Create the following macro in your default template (Normal.dot in Word 2003 and before, Normal.dotm in Word 2007 and later):

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


    Regards, Hans Vogelaar

    • Marked as answer by Rex Zhang Friday, June 29, 2012 1:05 AM
    Thursday, June 21, 2012 7:03 PM
  • Create the following macro in your default template (Normal.dot in Word 2003 and before, Normal.dotm in Word 2007 and later):

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


    Regards, Hans Vogelaar

     
     
     
    If the setting should also apply to new documents, the same line of code must be added to an AutoNew sub as well.

    Stefan Blom, Microsoft Word MVP
    • Marked as answer by Rex Zhang Friday, June 29, 2012 1:05 AM
    Thursday, June 21, 2012 10:17 PM
  • Good point, thanks.

    Regards, Hans Vogelaar

    Thursday, June 21, 2012 10:24 PM