Customizing Word – Part III
I want to be able to put my favorite templates on a list or toolbar, just like I can the styles or fonts. I tried putting them on my Work menu, but just ended up with being able to open the templates -- not create new documents from them.
· Things we can already do without customizing Word
o Make a List (and check it twice!)
o Record a couple of short macros
o Add your macros to a new menu on your custom toolbar
o Rename the macros to meaningful menu commands.
o Make MyGlobal.dot into a global template.
In the previous article we looked at two ways to organize and access templates that are built into Word and the operating system. Those were using the File è New dialog and the ability to add folders and shortcuts to the Start Menu in Windows or the Apple menu on the Mac. This month we’ll get into furniture moving.
If you are looking for a solution that is easily transported between work and home or that you want to share with others in your office, then you may want to look at customizing Word by adding a few macros and a menu or two. If this is your aim, get out your work clothes, put on your gloves, and we'll start moving some furniture.
The first thing you will want is to have these templates organized the way you want them. For a shared solution, we are talking about the Workgroup templates folder. We may also be talking about templates that are stored in a shared location and are outside of the Workgroup templates folder. (This is where you would put templates that you wanted to only be accessible through your menus.) You will want your co-workers to have the ability to read these files, and in the case of Workgroup templates, view the folder contents. Further, wherever you put these, if they aren't going to stay there, you are looking for a lot of extra work. (You don't want to move the piano every time someone decides to play a different CD on the stereo! Once you have a customized menu in place, moving a piano may look easy compared to moving a template.)
The shared location for these templates must appear to be the same for all users - the same mapped drive letter, or the same UNC. My preference is for the same drive letter, but that may take more regulation than your workplace can handle. The folder names must be identical (including the case of letters with some networks). For more on Template folder structure and placement see Template Basics at http://www.addbalance.com/usersguide/templates.htm.
You will want to keep your menus and macros in a "global" template. If you don't already have a global template, go to File è New and click "New Template" in the bottom right corner of the dialog box. Select blank document. You can use this new template to keep notes on what you have done if you want. It will not be used as the basis for new documents but as a container for your customizations. Save it using a name like "MyGlobal.dot." Don't close it.
Let's just start with three templates, named MyTemplate1.dot, MyTemplate2.dot, and MyTemplate3.dot. They are stored on a network location that is (1) accessible to you and (2) can be made accessible to others who will be using your menus. I will assume that they are in a folder called MyTemplates inside the Workgroup templates folder. You can use these techniques to construct menus for your own templates, as well.
To record each macro make sure that you have your global template open on your screen as the active window. At the bottom of your screen, in about the middle of the "status line," grayed out in a little box are the letters "REC." Double-click on these and the macro recorder dialog will open up.
The Record Macro Dialog Box
You will have to change the settings so that Word assigns a meaningful name to your Macro and puts it in your template. Note the use of internal upper-case letters in the Macro name. You want the dialog box to note that you want to store your macro in Documents Based On MyGlobal.dot. You can add an explanation of the macro if you want in the description. Click on OK or press the Enter key to return to your document and record your macro. The little macro recording toolbar will pop up. Ignore it for now but don't close it!
Using File => New, create a new document based on MyTemplate1.dot. Once the new document is open, click on the black box in the macro recording toolbar - not the x in the close box. Then close your new document, you don't need it anymore. Save MyGlobal.dot ( but don't close it).
Record two more macros named MyTemplate2NewDoc and MyTemplate3NewDoc, respectively. Follow the same steps of beginning your recording from within your global template and creating a new document using File => New. Close both new documents and save MyGlobal.dot. You have now recorded the macros that we'll use for our menus.
Because custom-built menus are very sensitive to changes, we want to keep our macros somewhere other than in the "NewMacros" module that Word uses for storing recorded macros. Otherwise, all of our macros will end up jumbled together. Pick a name (again all one word) that describes this group. Then use the Organizer (Tools => Customize... => Organizer (button)) to rename NewMacros to your new name. For purposes of this tutorial, we'll rename it LetterForms. You want to do this before we start building our templates menu because otherwise you'll have to build your menus again after you rename the module - the menu items won't know where to find your macros.
Chas' first rule of customizing toolbars and menus: Everything goes in a custom toolbar - even if you don't want a custom toolbar!
The scene: you have Word open and the only thing open in Word is MyGlobal.dot. All of your other templates and your new documents that you created when recording your macros are closed. The first step is to create a "custom toolbar" that we'll name "Template Favorites Toolbar." Note that this name does have spaces in it.
Tools
=> Customize... => Toolbars (tab) => New (button)
Make sure you are saving your toolbar in MyGlobal.dot.
A little stub of a toolbar will appear. Don't worry, it will grow as needed! Click on the Commands tab and go way to the bottom of the categories (left) window - to New Menu. The commands window on the right will clear of everything except "New Menu." Click on this "New Menu" from the commands window and drag it to your toolbar. (You can try dragging New Menu from the categories window - I do this regularly - but it won't budge.) Right-click on your new menu and rename the menu to something creative like "&Templates Favorites" or "&Letter Forms." (The ampersand - & - tells Word that you want to use the next letter for a keyboard shortcut.) You should now have toolbar that looks like it can really do something (even though it can't). Something like:
(Scene: The Customize dialog box is still on your screen, the open document is MyGlobal.dot.)
Click on the Macros category (left window) and you will probably get to wait a minute or so while Word sorts through all the macros available. Find your macros in the commands window.
While the macros list is organized, you may have some trouble figuring out the order. The default project name is "TemplateProject." Then comes the module name and finally the macro name. Since there is no way to make the window wider, you may end up guessing to find your macros. That is OK, if you guess wrong, just drag the mistake off your menu. Drag your macros, one at a time, to your new menu. Hold the macro over the new menu until the menu opens up, then drag the macro onto the menu. When you have dragged all three to your menu you will have something like the following:
As you can see, the menu widens to display the full (if incomprehensible) name. You can rename these menu commands by right-clicking on them while the Customize dialog box is open.
The names that I assigned were "Letter Form &1," etc. Again, the ampersand is to set a keyboard shortcut for your menu.
In case you want to use these as toolbar buttons, let's add some button images (something other than the default macro Lego(tm) spider). Right-click on each one, select Change Button Image, and pick a button to suit. (See Work Menu article for more on changing button images.) Click on Default Style to show the buttons on your menu (and toolbar). While holding down the Cntrl key, drag each macro command onto your toolbar (in addition to the menu).
The name you used for your macros will show up as the Tool Tip text for your buttons:
Remember that I said you needed to create a custom toolbar, even if you didn't want another toolbar? The reason for doing this is that customizations to the built-in menus can't be copied while custom toolbars can be copied easily. So, having built a (copyable) custom toolbar, we can use items on that toolbar to customize the built-in menus and toolbars.
With the Customize dialog box still open...
Hold the Ctrl key down while you drag your menu where you want it. Perhaps under the File menu. If you like, you can Ctrl-drag your buttons to your standard toolbar. This puts copies of your custom items on the built-in menus and toolbars. The originals remain on your custom toolbar - able to be moved.
Close the Customize dialog box. Close your custom toolbar (unless you want it to pop up everytime you start Word). Save and close MyGlobal.dot. Open a different document or create a new one (not based on MyGlobal.dot). Check under the file menu -- and where is your new menu that you spent all that time creating? We have one more step.
A global template is one that gives resources like menus to all of your documents. To have MyGlobal.dot act that way, move it into your Word Startup folder. Note that this is a different folder from the Programs Startup folder in your Start menu. This is specific to Microsoft Word. The location of your startup folder can be set by you. Otherwise its location will vary by operating system and Word version. You can find the location of your Startup folder by checking under Tools => Options => File Locations (tab). Once you know where it is, close Word. If none is set, you can set one (but it should NOT be your templates folder).
With Word closed, move MyGlobal.dot into your Startup folder.
Open Word again and take a look under the File menu. You should see your custom menu. Give it a try! All of your macros are available to you. And, since you did not store any of these customizations in your Normal.dot, you can share them easily. Next month, in a much shorter article, we'll take a look at doing just that. In the meantime, you have just done some major furniture moving and deserve a break! Tell someone close to you that you have been doing heavy lifting and need a back rub.
For more on moving customizations, see Moving (Sharing) Customizations in Microsoft Word. For more on global templates, see Template Basics.