Thread: Show In Groups
View Single Post
  #3  
Old December 4th 07, 03:00 AM posted to microsoft.public.outlook.program_vba
SP_1[_2_]
external usenet poster
 
Posts: 4
Default Show In Groups

Thank you for the tip.

I'm now looking for the ID of the Show In Groups command. These codes below
that I got from the web only return the IDs of those commands under the View
menu. I do not know how to get into the submenu of the Arranged By.

Set cbcs = objApp.ActiveExplorer.CommandBars("Menu
Bar").Controls("View").controls
For icbc = 1 To cbcs.Count
MsgBox cbcs(icbc).Caption & " = " & cbcs(icbc).ID
Next icbc

Please let me know where I can go further from here.

Thanks
Steve




"Ken Slovak - [MVP - Outlook]" wrote in message
...
Get a handle to that CommandBarControl and call its Execute method to
simulate a click on that menu item.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"SP_1" wrote in message
...
Hi

How can I check or unchecked (using VBA) the Show In Groups command (from
Views | Arranged By menu) ??

Thanks
Steve




Ads