Microsoft KB Archive/905691

= How to use the Visio 2003 and Visio 2007 Resource Kit Tools to disable Visio menu items on a client computer =

Article ID: 905691

Article Last Modified on 11/10/2006

-

APPLIES TO


 * Microsoft Office Visio Professional 2007
 * Microsoft Office Visio Standard 2007
 * Microsoft Office Visio Professional 2003
 * Microsoft Office Visio Standard 2003

-



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).



Install the Visio Resource Kit Tools
To install the Visio Resource Kit Tools, follow these steps:  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

 Click Download. In the File Download dialog box, click Save, and then save the VisioRKTools.exe file to a folder of your choice. Run the VisioRKTools.exe file. For example, in Windows Explorer, double-click VisioRKTools.exe. If you are prompted to run the file, click Run. Click Yes to accept the license agreement. Click Browse, and then locate the folder in which you want to extract the Visio Resource Kit Tools. Then, click OK two times.</li></ol>

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 &quot;Install the Visio Resource Kit Tools&quot; section.
 * 1) In the Add/Remove Templates dialog box, click Close.

For more information about how to set Group Policy, visit the following Microsoft Web site:

http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/directory/activedirectory/stepbystep/gpfeat.mspx

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: <ol> Expand User Configuration.</li> Expand Administrative Templates.</li> Expand Microsoft Visio 2003 or Microsoft Visio 2007 .</li> Expand Disable items in user interface.</li> Click Predefined.</li> Right-click Disable command bar buttons and menu items, and then click Properties.</li> On the Settings tab, perform one of the following actions: <ul> Click to clear the check box of the menu item that you want to disable. Then, click OK.</li> If you want to disable all the enabled menu items, click Disabled, and then click OK.</li></ul>

Note Click Next for more menu items.</li></ol>

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: <ol>  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(&quot;Menu Bar&quot;).Controls(&quot;File&quot;).Controls For icbc = 1 To cbcs.Count MsgBox cbcs(icbc).Caption & &quot; = &quot; & cbcs(icbc).ID   Next icbc End Sub Note Change the word &quot;File&quot; in the macro to a different menu name to obtain the control IDs for that menu. </li> Expand User Configuration.</li> Expand Administrative Templates.</li> Expand Microsoft Visio 2003 or Microsoft Visio 2007.</li> Expand Disable items in user interface.</li> Click Custom.</li> <li>Right-click Disable command bar buttons and menu items, and then click Properties.</li> <li>On the Settings tab, click Enabled, and then click Show.</li> <li>In the Show Contents dialog box, click Add.</li> <li>In the Add Item dialog box, type the control ID that you determined in step 1. Then, click OK.</li> <li>Click OK to close the Show Contents dialog box.</li> <li>Click OK to close the Disable command bar buttons and menu items Properties dialog box.</li></ol>

<div class="references_section">