By: Shamima Sultana

In reply to Stanka.

Hello Stanka,

Thank you for reaching out! The error 5941 typically occurs when the Word document doesn’t have a content control matching the code’s reference. Please ensure:

1. The targeted content control exists in your Word document.
2. The Selection is correctly pointing to the content control.

Try reviewing the document’s structure and rechecking the macro code. If you need further assistance, feel free to share more details, and I’ll be happy to help!

Regards
ExcelDemy