Just before mywddoc.Revisions.AcceptAll, add a line:
ActiveWindow.ActivePane.View.Type = wdPrintView
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Thanks.
Just before mywddoc.Revisions.AcceptAll, add a line:
ActiveWindow.ActivePane.View.Type = wdPrintView
word object library, etc
Posting more of your code would help with diagnosis. One circumstance that can raise that error is if the Word document is opened with an incompatible view. The document should be in **Print Layout* view, Read Mode or Web Layout view will cause an error.