Microsoft KB Archive/913678

= How to make a custom toolbar available to all users in Project Professional 2003 or in Project Professional 2002 =

Article ID: 913678

Article Last Modified on 3/14/2006

-

APPLIES TO


 * Microsoft Office Project Server 2003
 * Microsoft Office Project Professional 2003
 * Microsoft Project Server 2002
 * Microsoft Project 2002 Professional Edition

-





INTRODUCTION
This article describes how to create a custom toolbar that contains buttons to run macros. Additionally, this article describes how to deploy the custom toolbar to an enterprise global template (Global.mpt) file. Therefore, the custom toolbar will be available to all users of Microsoft Office Project Professional 2003 or Microsoft Project Professional 2002 when the users connect to Microsoft Office Project Server 2003 or to Microsoft Project Server 2002.



MORE INFORMATION
Note The following information refers to Project Server 2003 and to Project Professional 2003. However, this information also applies to Project Server 2002 and to Project Professional 2002.

When an enterprise project is opened from Project Server 2003, the enterprise global template settings are applied to the project. These settings include default views, toolbars, or tables. After the enterprise global template is applied to the project, any items in the local global file that do not have the same names as the items in the enterprise global template are also applied to the project file. Therefore, if you created a custom view, table, or filter that has the same name as an item in the enterprise global template, you are prompted to rename or overwrite the custom item.

Typically, the enterprise global template takes precedence over other templates. However, the precedence of toolbars and menus is treated differently from other items in the enterprise global template. Toolbars and menus in the local global file take precedence over toolbars and menus that have the same name in the enterprise global template. Additionally, different language versions of toolbars and menus in the local global file take precedence over toolbars and menu items in the enterprise global template.

However, a custom toolbar that has a unique name in the enterprise global template file in Project Server 2003 will be available to all users of Project Professional 2003. To include a custom toolbar that has a command button to run a macro in your enterprise global template file, follow these steps.

Step 1: Create the macro
Note The macro must not be a file-specific macro.  Start Project Professional 2003. Start a new project. Name the project . On the Tools menu, point to Macros, and then click Record New Macro. In the Macro name box, type a name. For example, type . In the Store Macro in list, click This Project. Click the other appropriate options, and then click OK.</ol>

Step 2: Copy the module that includes the macro to the enterprise global template
<ol style="list-style-type: lower-alpha;"> On the Tools menu, point to Enterprise options, and then click Open Enterprise Global.</li> In the Checked-out Enterprise Global project, click Organizer on the Tools menu.</li> Click the Modules tab.</li> On the left, in the Modules available in list, click  .</li> On the right, in the Modules available in list, click Checked-out Enterprise Global. In the left pane, click the available module entry. For example, click  .</li> Between the panes, click Copy, and then click Close.</li> Save the enterprise global template.</li> Exit Project Professional 2003.</li></ol>

Step 3: Create a custom toolbar
<ol style="list-style-type: lower-alpha;"> Start Project Professional 2003.</li> Open Project1.</li> On the Tools menu, point to Customize, and then click Toolbars.</li> On the Toolbars tab, click New, and then type a name in the Toolbar name box. For example, type CustToolbar1, and then click OK.</li> Click the Commands tab.</li> In the Categories list, click All Macros.</li> Drag the   command from the Commands list to the toolbar.</li> Click the newly added macro button on the toolbar.</li> <li>In the Customize dialog box, click Modify Selection.</li> <li>Click Edit button image or Change button image, and then make the necessary changes.</li> <li>Click Close.</li> <li>Open the enterprise global template.</li> <li>With the newly added button selected, click Modify Selection, and then click Assign Macro.</li> <li>Make sure that the macro that you created appears in the Command box. This macro must not be a file-specific macro.</li> <li>Click Close.</li> <li>Exit Project Professional 2003.</li></ol>

Step 4: Copy the custom toolbar to the enterprise global template
<ol style="list-style-type: lower-alpha;"> <li>Start Project Professional 2003.</li> <li>Open the enterprise global template.</li> <li>On the Tools menu, click Organizer.</li> <li>Click the Toolbars tab.</li> <li>On the left, in the Toolbars available in list, click Global (+ cached Enterprise).</li> <li>On the right, in the Toolbars available in list, click Checked-out Global Enterprise.</li> <li>In the left pane, click the   toolbar entry. Between the panes, click Copy.</li> <li>Close the Organizer.</li> <li>Save and then close the enterprise global template.</li> <li>Exit Project Professional 2003.</li></ol>

Additional query words: PRJ2003 PRJ2002

Keywords: kbhowto KB913678

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.