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:
- Open the Enterprise Global
- Enter Alt + F11 to open the VBA Editor (VBE)
- Expand the structure under the VBAProject (Checked-out Enterprise Global)
and double click on 'ThisProject (Checked-out Enterprise Global)' to open the
window
- 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
- Save and close the Enterprise Global
- Exit Project and Restart the Project client
- 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