View Single Post
 
Old 03-08-2012, 09:58 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Luke,

Add the following code to your 'Normal' template's 'ThisDocument' module:
Code:
Option Explicit
Private Sub Document_New()
Call Document_Open
End Sub
 
Private Sub Document_Open()
With ActiveWindow
  On Error Resume Next
  'Reduce flickering while changing settings
  .Visible = False
  'Switch to Print Preview mode
  If .View.SplitSpecial = wdPaneNone Then
    .ActivePane.View.Type = wdPrintView
  Else
    .View.Type = wdPrintView
  End If
  With .ActivePane.View.Zoom
    'Set for a 1-page view
    .PageColumns = 1
    'Initialize for best fit
    .PageFit = wdPageFitBestFit
    'Test zoom % and reduce to 125% max
    If .Percentage > 125 Then .Percentage = 125
  End With
  'Display the Rulers
  .ActivePane.DisplayRulers = True
  'Restore the window now that we're finished
  .Visible = True
End With
End Sub
With this code, every document will be opened in Print layout view and any document that can be opened at 125% will do so. Wider documents (eg in landscape format) will open at whatever zoom amount allows them to fit on screen. Word's rulers will also be displayed.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote