Open 2007 Word Docs with zoom and view

G

Graham Mayor

If you save the commands in an autoopen and an autonew macro in normat.dotm
this will force the setting

Sub AutoOpen()
ActiveWindow.Caption = ActiveDocument.FullName
With ActiveWindow.View
.Type = wdNormalView
.Zoom.Percentage = 140
End With
End Sub

Sub AutoNew
With ActiveWindow.View
.Type = wdNormalView
.Zoom.Percentage = 140
End With
End Sub

Note that draft view is still called normal view in vba and you must set the
view before changing the zoom. The extra line in autoopen puts the filename
and path in the window title bar.
http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
G

Graham Mayor

Apologies a slip of the fingers - it should be normal.dotm (a hidden file).

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top