I have a word document that I use and change daily. I always use outline view for this document. How do I make it so that when I open the document, it comes up in outline view?
There are two alternative methods, depending on whether you want to save the document as a macro-enabled (*.docm) file with the macro in it, or whether you'd prefer to keep the macro in your Normal.dotm template. Personally, I'd prefer the Normal.dotm method.
For the first method, first use File > Save As and change the "Save as type" dropdown in the dialog to "Word Macro-Enabled Document (*.docm)". In order to prevent Word from disabling the macro, you also need to go to File > Options > Trust Center > Trust Center
Settings > Trusted Locations and designate the document's folder as a trusted location. Then you can add the following macro to the document (see
http://www.gmayor.com/installing_macro.htm if needed):
Sub AutoOpen()
ActiveWindow.View = wdOutlineView
End Sub
For the second method, you put an AutoOpen macro into a module in Normal.dotm (and no macros at all in the document, which can be stored in any folder without worrying about trusted locations). The macro runs whenever you open any document, but the If statement
limits the change of view to the document whose name you specify (replace "MyDocument.docx" with the actual name of your document):
Sub AutoOpen()
If ActiveDocument.Name = "MyDocument.docx" Then
ActiveWindow.View = wdOutlineView
End If
End Sub