Assigning a macro to a toolbar button

Suppose that you're a fan of toolbar buttons, and you create a macro that you use a lot. You find yourself wanting a toolbar button that you can click to make your macro run. Well, you can get your wish by adding a button to a toolbar and assigning your macro to that button.

Adding buttons to the toolbars that come with Project isn't always a good idea. If you add a toolbar button to one of the toolbars that comes with Project and you reset that toolbar, the button that you added disappears.

The following steps explain how to add a button that's assigned to a macro to the Standard toolbar, but you can also add toolbar buttons for macros to a custom toolbar that you create.

Chapter 20 explains how to create a custom toolbar.

1. Check to see whether the toolbar to which you want to add a button appears on-screen. If it does, go to Step 2. Otherwise, display the toolbar by right-clicking any toolbar button and choosing the toolbar from the shortcut menu that appears.

2. Choose ViewOToolbarsOCustomize to open the Customize dialog box.

Tip You can also open the Customize dialog box by choosing ToolsoCustomizeo

3. Click the Commands tab, as shown in Figure 24-6.

Figure 24-6: From the Commands tab of the Customize dialog box, you can add macros as buttons to toolbars.

4. Scroll down the Categories list, and select All Macros. Project displays a list of macros in the Commands list on the right side of the dialog box.

5. Drag the macro that you want to add onto the desired toolbar, as shown in Figure 24-7. As you drag, the mouse pointer image changes to include a small button and a plus sign. As you move the mouse pointer over a toolbar, a large insertion point marks the location where the button will appear when you release the mouse button.

Mouse pointer

Mouse pointer

Figure 24-7: The image of the mouse pointer icon changes as you drag a macro onto the Standard toolbar.

6. Release the mouse button and a new button appears on the toolbar, as shown in Figure 24-8. The name of the button is so long that Project wrapped the Standard toolbar onto a second row.

Tip If you're concerned about using excessive screen real estate, you may want to take advantage of the feature in Project that permits the Standard toolbar and the * Formatting toolbar to share the same row. Buttons that are not used frequently reside on a hidden palette. See Chapter 23 for more information about customizing Project.

7. To change the name of the toolbar button, click Modify Selection in the Customize dialog box to open the pop-up menu that is shown in Figure 24-9.

8. Type the name, exactly as you want it to appear on the toolbar button, into the Name box. You can include spaces.

9. Press Enter. The pop-up menu disappears, and Project renames the macro toolbar button, as shown in Figure 24-10.

New macro button

New macro button

Figure 24-8: The new button after dropping it on the toolbar.
Figure 24-9: The menu that appears when you click the Modify Selection button to change a macro button's name.

The renamed macro button

The renamed macro button

Figure 24-10: I renamed the toolbar button Detail Form.

10. Close the Customize dialog box.

When you add a toolbar button to an existing toolbar, Project saves it in your Global template file. Any other project files that you open on your computer using that Global template file contain the new toolbar button.

Tip If you change your mind and don't want the button on the toolbar, you can remove it by opening the Customize dialog box and then simply dragging the but* ton off the toolbar and dropping it anywhere on your project. The button disappears, but the macro is still available.

Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Responses

  • FREYJA
    How to add a button to ms project?
    5 months ago
  • melba
    How to add a macro to ms projects?
    2 months ago

Post a comment