PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Show In Groups

Reply

Show In Groups

 
Thread Tools Rate Thread
Old 03-12-2007, 06:50 AM   #1
SP_1
Guest
 
Posts: n/a
Default Show In Groups


Hi

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

Thanks
Steve

  Reply With Quote
Old 03-12-2007, 01:53 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Show In Groups

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" <non@web.net> wrote in message
news:O7y8IjXNIHA.5264@TK2MSFTNGP02.phx.gbl...
> Hi
>
> How can I check or unchecked (using VBA) the Show In Groups command (from
> Views | Arranged By menu) ??
>
> Thanks
> Steve


  Reply With Quote
Old 04-12-2007, 02:00 AM   #3
SP_1
Guest
 
Posts: n/a
Default Re: 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]" <kenslovak@mvps.org> wrote in message
news:eiqZbQbNIHA.4272@TK2MSFTNGP05.phx.gbl...
> 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" <non@web.net> wrote in message
> news:O7y8IjXNIHA.5264@TK2MSFTNGP02.phx.gbl...
>> Hi
>>
>> How can I check or unchecked (using VBA) the Show In Groups command (from
>> Views | Arranged By menu) ??
>>
>> Thanks
>> Steve

>



  Reply With Quote
Old 04-12-2007, 09:38 PM   #4
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Show In Groups



--
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" <non@web.net> wrote in message
news:O7y8IjXNIHA.5264@TK2MSFTNGP02.phx.gbl...
> Hi
>
> How can I check or unchecked (using VBA) the Show In Groups command (from
> Views | Arranged By menu) ??
>
> Thanks
> Steve



  Reply With Quote
Old 04-12-2007, 09:47 PM   #5
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Show In Groups

The easiest way is to download OutlookSpy from www.dimastr.com and click the
Explorer button when in a folder view. Then look at the CommandBars tab and
expand things until you find what you want.

In this case "Sho&w in Groups" is ID 7627.

--
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" <none@web.com> wrote in message
news:u8dzulhNIHA.4880@TK2MSFTNGP03.phx.gbl...
> 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



  Reply With Quote
Old 14-12-2007, 01:03 AM   #6
SP_1
Guest
 
Posts: n/a
Default Re: Show In Groups

Hope the item got to you ok. Thanks again
Steve
----------------
Label/Receipt Number: 0306 2400 0002 5727 8796
Status: Delivered
Your item was delivered at 1:28 PM on December 12, 2007 in WINTER PARK, FL
32792
-----------------

"Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> wrote in message
news:ukI1Y4rNIHA.5860@TK2MSFTNGP04.phx.gbl...
>
>
> --
> 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" <non@web.net> wrote in message
> news:O7y8IjXNIHA.5264@TK2MSFTNGP02.phx.gbl...
>> Hi
>>
>> How can I check or unchecked (using VBA) the Show In Groups command (from
>> Views | Arranged By menu) ??
>>
>> Thanks
>> Steve

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off