How to Build Word VBA Macro for Auto-Save With Custom Filename Pattern

You need a Word macro that saves your document automatically with a filename that follows a specific pattern such as ProjectName_Date_Version.docx. The built-in AutoRecover feature in Word does not allow custom filenames and saves only to a fixed location. This article explains how to write a VBA macro that creates a custom filename from document … Read more

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