Disable "Recover Deleted Items" Option from the Tools menu in Outlook XP via a GPO

M

Mr Paul

I would like to disable the option in Outlook XP for when the user
highlights the Deleted Items folder and selects "Recover Deleted Items".

I have installed the Office XP Resource Kit, and have found the option in
the Outlook10.ADM file called "Disable items in the User Interface
(Custom)." All it asks for is the name of the Command Bar ID to be
disabled. I have no idea what the Command Bar ID for "Recover Deleted
Items" is, or how to find it. Can someone please help me?

Paul.
 
M

Michael Bednarek

I would like to disable the option in Outlook XP for when the user
highlights the Deleted Items folder and selects "Recover Deleted Items".

I have installed the Office XP Resource Kit, and have found the option in
the Outlook10.ADM file called "Disable items in the User Interface
(Custom)." All it asks for is the name of the Command Bar ID to be
disabled. I have no idea what the Command Bar ID for "Recover Deleted
Items" is, or how to find it. Can someone please help me?

In OL11, the number is 5654. Here's some code:

Dim icbc As Long
Dim cbcs As CommandBarControls

Set cbcs = ActiveExplorer.CommandBars("Menu Bar").Controls("Tools").CommandBar.Controls

For icbc = 1 To cbcs.Count
Debug.Print icbc, cbcs(icbc).Caption & " = " & cbcs(icbc).ID
Next icbc

or more generally:

Dim myCtrls As CommandBarControls
Dim myCtrl1 As CommandBarControl
Dim myCtrl2 As CommandBarControl

Set myCtrls = ActiveExplorer.CommandBars("Menu Bar").Controls
For Each myCtrl1 In myCtrls
Debug.Print "Menu: ", myCtrl1.ID, myCtrl1.Type, myCtrl1.Caption
If myCtrl1.Type = msoControlPopup Then
For Each myCtrl2 In myCtrl1.CommandBar.Controls
Debug.Print " Item:", myCtrl2.ID, myCtrl2.Caption
Next myCtrl2
End If
Next myCtrl1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top