The Macro Zone

VBA in Microsoft Word for Windows

Jay Freedman  Microsoft Most Valuable Professional

Get the book!

On Amazon or on B&N


 Templates available for download
(and other stuff)

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, 2010, or 2013.

 Stop Reconfiguring Two or More Versions of Word on the Same Computer If you have two or more versions installed, each one wants to reconfigure after you run another one. This article explains how to stop that, without manually editing the registry.

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-2013 (*.dotx) format. These templates are based on the ones from Microsoft Office Online. The dates were kindly converted by Elizabeth.

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

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

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 2013.

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.

 NewDocUserform.zip An add-in that displays a New Document dialog in the efficient List format. You can choose to show the templates in any folder, including network locations. This is especially useful to replace the huge File > New page in Word 2013, but it also works in Word 2007 and 2010. It adds a button to the Quick Access Toolbar. Unzip the download into the Startup folder (usually %appdata%\Microsoft\Word\Startup).

 SaveView2013.zip Word 2013 forces all documents to open in Print Layout view. This add-in restores the behavior of previous versions, saving the current view and zoom in the file and showing that view when you reopen the document. Includes Graham Mayor's contribution here.

  Instructions: Right-click the downloaded zip file, click Properties, and click the Unblock button; then click OK. Extract the SaveView2013.dotm file from the zip, and store it in the folder

  %appdata%\Microsoft\Word\STARTUP

If Word is running, close it and reopen it.

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