G
Guest
Hi, I would like to configurate Outlook 2002 with Control ID and Group policies. I've seen an example how to get hold of the ID in XP Resource kit. ( http://www.microsoft.com/office/ork/xp/two/admB05.htm) BUT this code does not seem to work when I run it in Outlook 2002, the code does work in Excel, Word and Powerpoint. The code I run, is to be found underneath my name.
Any ideas would be appreciated.
Best regards.
Niclas L
------------------------------------------------
Sub EnumerateControls()
Dim icbc As Integer
Dim cbcs As CommandBarControls
Set cbcs = Application.CommandBars("Menu bar").Controls("File").Controls
For icbc = 1 To cbcs.Count
MsgBox cbcs(icbc).Caption & " = " & cbcs(icbc).ID
Next icbc
End Sub
-----------------------------------------------
Any ideas would be appreciated.
Best regards.
Niclas L
------------------------------------------------
Sub EnumerateControls()
Dim icbc As Integer
Dim cbcs As CommandBarControls
Set cbcs = Application.CommandBars("Menu bar").Controls("File").Controls
For icbc = 1 To cbcs.Count
MsgBox cbcs(icbc).Caption & " = " & cbcs(icbc).ID
Next icbc
End Sub
-----------------------------------------------