ActiveWindow.View "object variable not set"
I'm getting the error "Object variable or With block variable not set" when I try to run the following macro on Word 2016 on a Mac:
Sub MarkupToggle()
With ActiveWindow.View
.ShowRevisionsAndComments = Not .ShowRevisionsAndComments
.RevisionsView = wdRevisionsViewFinal
End With
End Sub
How can I diagnose this error?
|