Skip to main content
The World's Best Known Brand for Microsoft Project and Project Server Expertise

Project Server Experts Community Site

Search
Project Server Experts Community Site
Project Server Help Blog
MSProject Experts
Training Schedule
Contact Us
  
Project Server Experts Community Site > Project Server FAQ KnowledgeBase > SaveVBAToEnterpriseGlobal  


How do I create a VBA procedure or event that is available to all projects in the Project Server database?



Microsoft Project Server Frequently Asked Questions (FAQs): Overview



Microsoft Project Server Frequently Asked Questions (FAQs): Details

Background Information

Project Server administrators frequently want to make a VBA procedure or event available to all projects in the Project Server database. To attempt this, you can add the VBA code to an enterprise project template, but you cannot force every project manager to use the template. Worse yet, if you update the code, you must manually update each project template and every project individually.

Resolution

Add the VBA code to the Enterprise Global file. The system makes all VBA code in the Enterprise Global file available to all enterprise projects and updates the latest version of the VBA code automatically each time a project manager logs into Project Server through Microsoft Project Professional. To add your VBA code to the Enterprise Global file, complete the following steps:

1. Launch Microsoft Project Professional and log into Project Server with administrator permissions

2. Before making changes to the Enterprise Global, backup the file using Tools > Enterprise Options > Backup Enterprise Global

3. Click Tools > Enterprise Options > Open Enterprise Global

4. Click Tools > Macro > Visual Basic Editor

5. Click View > Project Explorer if the Project Explorer sidepane is not displayed in the Visual Basic Editor window

6. Select the Enterprise Global by double-clickingThisProject (Checked-out Enterprise Global)” in the Project Explorer sidepane, as shown in the following illustration

 

Visual Basic Editor: ThisProject selected

7. Enter your VBA code

8. Save the VBA code

9. Close the Visual Basic Editor window

10. Save and close the Enterprise Global

11. Exit and relaunch Microsoft Project Professional

Note: From this point forward, all enterprise projects will have access to this code. Depending on the Security Level set using Tools > Macro > Security, your project managers may see a security warning each time they launch Microsoft Project Professional and log into Project Server.

 

 

Stay Connected

Join Our
LinkedIn Network
Follow Us
on Twitter

About FAQs

Microsoft Project Server Frequently Asked Questions (FAQs) provide information about Microsoft Project Server 2002, Microsoft Project Server 2003, Microsoft Project Server 2007, and Microsoft Project Server 2010.

Topics include common errors and the Project Server queue, project manager and resource manager approvals, enterprise calendars, enterprise custom fields, enterprise projects and the enterprise resource pool, user access, reports and OLAP analysis, resource work, project costing, task progress reporting and timesheets, Project Web Access (PWA) and Project Professional, check-out check-in and the local cache, saving and publishing, and issues risks deliverables documents and project workspaces.

About This Site

Project Server Experts (www.projectserverexperts.com) is an online community that provides answers to Project Server Frequently Asked Questions, allows members of the Project Server community to connect with one another by uploading their Business Cards, provides links to online Project Server resources, and links to Microsoft Project and Project Server related jobs.

This site is brought to you by MSProjectExperts. If you find the information posted here useful, please consider visiting our commercial site (www.msprojectexperts.com) for Project Server books, Project Server training and Project Server consulting services. Please support our sponsors. Thanks. -- The MSProjectExperts Team

Submissions

We welcome content submissions. We give author credit and cross link on all accepted articles. Please send your articles and suggestions to info(at)msprojectexperts.com.

Copyright

Reproduction of content on this site is strictly prohibited without the express permission of MSProjectExperts. Copyright (c) 2011 CHEFETZ LLC. All rights reserved