View Single Post
 
Old 12-12-2022, 01:42 PM
bronco9588 bronco9588 is offline Windows 10 Office 2019
Novice
 
Join Date: Dec 2022
Posts: 4
bronco9588 is on a distinguished road
Default Error Code when Running Macro with active comment

Thanks in advanced.

I have a word document template that is designed to be sent from an author to a peer reviewer and back to the original author. During the peer review process it is normal and expected that the reviewer would insert comments. During commenting, you need to post the comment to make another comment. When I accidentally "forget" to post the last comment and run the macro, I get an error code:

4605 "This method or property is not available because comment card is selected in pane."

or if I have my cursor selected to reply to a preexisting comment, I get the following error code:

5825 "Object has been deleted."

In both cases the problem appears to be that I have an active comment and there the active document is not the actual document. What is the best way to post the last comment text and return to the document body before running the macro?

Something like:

If ActiveDocument.Comment is Open
Post comments
ActiveDocument.Sections(1).Range.Select
End If

My apologies for poor programming.
Reply With Quote