View Single Post
 
Old 12-15-2011, 06:05 AM
cprelude cprelude is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: Dec 2011
Posts: 9
cprelude is on a distinguished road
Question Word 2010: always open in Draft View

Hi there,
I have the following working fine when I open word and create a New Document. Anyone know how to get this macro to run as word is opening? I.e., I mean by this when I actually run the programme, cannot get the programme to run this macro automatically when it OPENS? As opposed to me having to click New Document every time I open Word?

Code:
Sub AutoNew()
'Display filename and path in window title bar
ActiveWindow.Caption = ActiveDocument.FullName
'The remaining settings are the same as for autonew
ActiveWindow.ActivePane.DisplayRulers = True
With ActiveWindow.View
  .Type = wdNormalView
  .Zoom.Percentage = 160
  'fix the tiny cursor error
End With
End Sub

Last edited by macropod; 12-19-2011 at 06:52 PM. Reason: Fixed code presentation
Reply With Quote