A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Expand/Collapse



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 25th 07, 07:44 PM posted to microsoft.public.outlook.program_vba
Ben Adams
external usenet poster
 
Posts: 1
Default Expand/Collapse

Want to add to my VB code to Expand or Collapse groups.

Specificly for a Task folder, Under View menu you can click Expand, or
Collapse

??

Ben
  #2  
Old April 25th 07, 08:21 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Expand/Collapse

There's nothing in the Outlook object model for that. You'd have to get a
handle to the CommandBarButton object that represents what you want in the
menu structures and call the Execute method on that button or buttons. I'd
also check for the Enabled property of the buttons.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Ben Adams" wrote in message
...
Want to add to my VB code to Expand or Collapse groups.

Specificly for a Task folder, Under View menu you can click Expand, or
Collapse

??

Ben


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Collapse Contacts by Default Chaplain Doug Outlook - Using Contacts 2 March 21st 07 04:31 PM
2007 DL will not expand Densie Outlook - Using Contacts 2 March 13th 07 02:16 PM
No + to expand distribution list CArolyn Outlook - Using Contacts 5 March 11th 07 03:02 AM
Collapse .pst automatically when starting outlook Oliver Outlook and VBA 2 May 17th 06 04:13 AM
Unable to expand folders Kent Smith Outlook - Installation 0 February 9th 06 05:34 PM


All times are GMT +1. The time now is 11:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.