How to Read Word Document Properties Programmatically via VBA Macro

Document properties in Word store metadata such as author name, title, subject, keywords, and last-saved date. You may need to extract this information automatically when processing multiple files or generating reports. The built-in document properties panel shows this data, but reading it with a VBA macro lets you collect it in bulk or use it … Read more

How to Iterate All Word Bookmarks With VBA Including Hidden Document Parts

You have a Word document with bookmarks that are not visible in the default Bookmarks dialog or in the document body. These hidden bookmarks may reside in headers, footers, text boxes, comments, or other story ranges. The standard ActiveDocument.Bookmarks collection only covers the main document story. To access all bookmarks, you must use VBA to … Read more