Word VBA API for modern comments (Word 365)?

Rainer_S 20 Reputation points
2023-02-15T16:23:47.4766667+00:00

Using Word 365 with modern comments:

Is it possible to find out via Word VBA API if a modern comment in draft mode exists anywhere in a given document?

Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
737 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,687 questions
Word Management
Word Management
Word: A family of Microsoft word processing software products for creating web, email, and print documents.Management: The act or process of organizing, handling, directing or controlling something.
907 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 114.2K Reputation points
    2023-02-15T17:11:11.4066667+00:00

    Check the value of ActiveDocument.Comments.Count, which is not zero if there are comments.