Outlook 2003 Contorl IDs

S

spaceman_toons

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
 
N

neo [mvp outlook]

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
 

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