View Single Post
  #2  
Old November 2nd 06, 11:34 AM posted to microsoft.public.outlook.installation
neo [mvp outlook]
external usenet poster
 
Posts: 718
Default Outlook 2003 Contorl IDs

Control ID is 1886 for the Archive Command off the File Menu.

I was going to refer you to
http://office.microsoft.com/en-us/or...402401033.aspx and have you
use the EnumerateControls VBA code, but realized it has to be modified in
order to work with Outlook's object model. The revised code is below if you
get curious about other menu controls.

Sub EnumerateControls()
Dim icbc As Integer
Dim cbcs As CommandBarControls
Set cbcs = Application.ActiveExplorer.CommandBars("Menu
Bar").Controls("File").Controls
For icbc = 1 To cbcs.Count
Debug.Print cbcs(icbc).Caption & " = " & cbcs(icbc).ID
Next icbc
End Sub


"spaceman_toons" wrote in message
...
I'm trying to turn off the Archive command from Outlook's file menu, I
know
this is achievable using group policy and disabling it via it's control
ID.

does any know of a list for these specifically for Outlook 2003, Thanks



Ads