M
mcslemon
Hi,
I'm looking to disable some menu items in Outlook via GPO. This can be
achieved by giving the Control ID of the menu item.
I've found the VBA code that enables you to retrieve these ID's but
they only work for top level items on menus.
Sub EnumerateControls()
Dim icbc As Integer
Dim cbcs As CommandBarControls
Set cbcs = Application.ActiveExplorer.CommandBars("Menu
Bar").Controls("Tools").Controls
For icbc = 1 To cbcs.Count
MsgBox cbcs(icbc).Caption & " = " & cbcs(icbc).ID
Next icbc
End Sub
However, this does not recursively check sub menus.
Basically we need to disable Client-Side Rules under the Tools>Rules
Wizard menu but I can't get the ID for the items in this sub menu.
Can anyone shed any light on this? Perhaps suggesting how I can
recursively check sub menus.. ?
Thanks
Neil.
I'm looking to disable some menu items in Outlook via GPO. This can be
achieved by giving the Control ID of the menu item.
I've found the VBA code that enables you to retrieve these ID's but
they only work for top level items on menus.
Sub EnumerateControls()
Dim icbc As Integer
Dim cbcs As CommandBarControls
Set cbcs = Application.ActiveExplorer.CommandBars("Menu
Bar").Controls("Tools").Controls
For icbc = 1 To cbcs.Count
MsgBox cbcs(icbc).Caption & " = " & cbcs(icbc).ID
Next icbc
End Sub
However, this does not recursively check sub menus.
Basically we need to disable Client-Side Rules under the Tools>Rules
Wizard menu but I can't get the ID for the items in this sub menu.
Can anyone shed any light on this? Perhaps suggesting how I can
recursively check sub menus.. ?
Thanks
Neil.