Outlook 2003 Contorl IDs

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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/ork2003/HA011402401033.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
 
Back
Top