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 > Customize menus using the Enterprise Global  


Customize menus using the Enterprise Global



Microsoft Project Server Frequently Asked Questions (FAQs): Overview



Microsoft Project Server Frequently Asked Questions (FAQs): Details

Background

You want to distribute menu changes across the enterprise using the Enterpise Global file.

Resolution

You can accomplish this by creating a VBA macro that uses the Project_Open event as follows: 

  1. Open the Enterprise Global
  2. Enter Alt + F11 to open the VBA Editor (VBE)
  3. Expand the structure under the VBAProject (Checked-out Enterprise Global)
    and double click on 'ThisProject (Checked-out Enterprise Global)' to open the
    window
  4. Enter the following code changing the values as you require:

    Private Sub Project_Open(ByVal pj As Project)
    Dim myCmd As Object
       Set myCmd = CommandBars("menu bar").Controls("[menu item]")
       myCmd.Controls("[command]").Enabled = False
    End Sub
  5. Save and close the Enterprise Global
  6. Exit Project and Restart the Project client
  7. Note that when you open a project, the system loads this code and adjusts the menu bar accordingly.

Example - to disable the 'Save As' command the code would be:

Private Sub Project_Open(ByVal pj As Project)
Dim myCmd As Object
   Set myCmd = CommandBars("menu bar").Controls("File")
   myCmd.Controls("Save As...").Enabled = False
End Sub

 

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