The Macro Zone

VBA in Microsoft Word for Windows

Jay Freedman  Microsoft Most Valuable Professional

 Templates available for download

Use the VBA macro code in these templates to learn how to solve problems for yourself. Most of the templates contain text that explains how the macros work, and the macros themselves contain comments.

Unless indicated otherwise, the macros in these templates work in Word 2000, 2002 (XP), and 2003. They may or may not work in Word 97 or in Word 2007 or 2010.

2012_Calendars.zip A group of three templates for 12-month calendars for 2012. Each calendar is provided in both Word 97-2003 (*.dot) and Word 2007-2010 (*.dotx) format. These templates are based on ones from Microsoft Office Online.

2013_Calendars.zip A group of three templates for 12-month calendars for 2013. Each calendar is provided in both Word 97-2003 (*.dot) and Word 2007-2010 (*.dotx) format. These templates are based on the ones in 2012_Calendars.zip. The dates were kindly converted by Elizabeth.

AutoCorrect2007.zip The AutoCorrect backup/restore template from the Word MVP FAQ, updated for use with Word 2007 and Word 2010.

autotextdumper.zip Utility for dumping all AutoText entries from a template to a document. Word 2000–2003 only.

autotextloader2.zip Utility for loading a large number of AutoText entries into a template. Word 2000–2003 only.

bookmark_addin.zip An add-in that displays on the status bar the name of any bookmark that you select. Unzip the download into the Startup folder (usually %appdata%\Microsoft\Word\Startup). Works in all versions.

finder.zip A Find dialog like the one in Adobe Reader, showing all occurrences of a term. Works in all versions from Word 2000 to 2010.

form_picture.zip Demo of a method for inserting a picture into a locked form.
If you use table cells to hold the pictures, the pictures will be automatically resized to fit the cells. Different pictures can be inserted at different sizes.

WordBasic Help file This exe file installs the Help from Word 95 WordBasic. You need this reference if you're converting an old macro.

zip_to_city.zip Demo of a method for inserting a zip code list in a userform.

 

Locations of visitors to this page