DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 905691 - Last Review: June 20, 2014 - Revision: 3.0

On This Page

Summary

You can use the Microsoft Office Visio 2003 and Microsoft Office Visio 2007 Resource Kit Tools to customize the menu items for client computers that run Visio 2003 and Visio 2007. The Visio 2003 Resource Kit Tools help corporate environments disable Visio menu items according to their requirements.

INTRODUCTION

This article describes how to use the Visio Resource Kit Tools to disable Visio menu items on a client computer.

Note When a menu item is disabled, the item is not removed from the menu. The menu item is just unavailable (appears dimmed).

More information

Install the Visio Resource Kit Tools

To install the Visio Resource Kit Tools, follow these steps:
  1. To obtain the Visio Resource Kit Tools, visit the following Microsoft Web site:
    http://www.microsoft.com/downloads/details.aspx?FamilyID=87d292f0-13c2-42bc-a561-c7dfd166642d (http://www.microsoft.com/downloads/details.aspx?FamilyID=87d292f0-13c2-42bc-a561-c7dfd166642d)
  2. Click Download.
  3. In the File Download dialog box, click Save, and then save the VisioRKTools.exe file to a folder of your choice.
  4. Run the VisioRKTools.exe file. For example, in Windows Explorer, double-click VisioRKTools.exe.
  5. If you are prompted to run the file, click Run.
  6. Click Yes to accept the license agreement.
  7. Click Browse, and then locate the folder in which you want to extract the Visio Resource Kit Tools. Then, click OK two times.

Add the Visio11.adm policy by using the Group Policy snap-in

After you set up an Active Directory and Group Policy infrastructure in your organization, you use the Group Policy snap-in in the Microsoft Management Console (MMC) to set Visio policies from the Visio policy template (.adm file). After you set a policy for a particular Group Policy object, Microsoft Windows automatically implements the policy on users' computers.

To add the Visio11.adm policy by using the Group Policy snap-in, follow these steps:
  1. Click Start, click Run, type gpedit.msc, and then click OK.
  2. In the Group Policy snap-in, right-click Administrative Templates under User Configuration, and then click Add/Remove Templates.
  3. Click Add.
  4. Click Visio11.adm, and then click Open.

    Note The Visio11.adm file should be located in the folder that you specified in step 7 of the "Install the Visio Resource Kit Tools" section.
  5. In the Add/Remove Templates dialog box, click Close.

Disable a menu item that is predefined in the policy file

To disable a menu item that is predefined in the policy file, follow these steps in the Group Policy snap-in of the MMC:
  1. Expand User Configuration.
  2. Expand Administrative Templates.
  3. Expand Microsoft Visio 2003 or Microsoft Visio 2007 .
  4. Expand Disable items in user interface.
  5. Click Predefined.
  6. Right-click Disable command bar buttons and menu items, and then click Properties.
  7. On the Settings tab, perform one of the following actions:
    • Click to clear the check box of the menu item that you want to disable. Then, click OK.
    • If you want to disable all the enabled menu items, click Disabled, and then click OK.
    Note Click Next for more menu items.

Disable a menu item that is not predefined in the policy file

To disable a menu item that is not predefined in the policy file, follow these steps in the Group Policy snap-in of the MMC:
  1. Determine the control ID for the menu item that you want to disable. To do this, run a Microsoft Visual Basic for Applications (VBA) macro in Visio to determine the control ID for the menu item.

    For example, the following macro opens a series of message boxes to display the commands and corresponding control IDs for each item on the File menu in Visio:
    Sub EnumerateControls()
        Dim icbc As Integer
        Dim cbcs As CommandBarControls
        Set cbcs = Application.CommandBars("Menu Bar").Controls("File").Controls
        For icbc = 1 To cbcs.Count
            MsgBox cbcs(icbc).Caption & " = " & cbcs(icbc).ID
        Next icbc
    End Sub
    
    Note Change the word "File" in the macro to a different menu name to obtain the control IDs for that menu.
  2. Expand User Configuration.
  3. Expand Administrative Templates.
  4. Expand Microsoft Visio 2003 or Microsoft Visio 2007.
  5. Expand Disable items in user interface.
  6. Click Custom.
  7. Right-click Disable command bar buttons and menu items, and then click Properties.
  8. On the Settings tab, click Enabled, and then click Show.
  9. In the Show Contents dialog box, click Add.
  10. In the Add Item dialog box, type the control ID that you determined in step 1. Then, click OK.
  11. Click OK to close the Show Contents dialog box.
  12. Click OK to close the Disable command bar buttons and menu items Properties dialog box.

References

For more information, visit the following Microsoft Web site:
http://office.microsoft.com/en-us/assistance/HA011513711033.aspx (http://office.microsoft.com/en-us/assistance/HA011513711033.aspx)
For more information about how to run sample VBA codes that are included in Knowledge Base articles, click the following article number to view the article in the Microsoft Knowledge Base:
297304  (http://support.microsoft.com/kb/297304/ ) How to run sample code from Knowledge Base articles

Applies to
  • Microsoft Office Visio Professional 2007
  • Microsoft Office Visio Standard 2007
  • Microsoft Office Visio Professional 2003
Keywords: 
kbmenu kbprogramming kbautomation kbvba kbhowto KB905691
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support