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.
 

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