I think this may need API code but hoping there's a way to do it also using Word VBA. I am writing a Word macro that needs to go through dozens of directories and find the name of any document that has the word 'Letter' in the Comments attribute. When I find one, I will be adding that filename to a listbox so the user can see it.
I don't want to open the word document first and then look for the text in the Comment attribute as that would be too slow. I would ike to use VBA/API code to read the contents of the Comments field as listed in Windows Explorer.
Any ideas on how to read the Comments attribute?
Thanks so much.