AutoOpen - Error

D

Dan

I am just trying to set an AutoOpen routine to turn off the comments and
revisions and set the revisions view to final.

Sub AutoOpen()
With ActiveWindowView
..ShowRevisionsAndComments = False
..RevisionsView = wdRevisionsViewFinal
End With
End Sub

I add it as a module to my normal template and when I open a document I get
the "vba object variable or with block variable not set" error.

What is going wrong?
 
T

Tony Jollans

The obvious error is ActiveWindowView should be ActiveWindow.View (with a
dot between ActiveWindow and View). If that's just a typo in your post, I
don't know.
 
Top