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

Switch view to Folder List



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 17th 08, 12:36 PM posted to microsoft.public.outlook.program_vba
Rob Nicholson
external usenet poster
 
Posts: 15
Default Switch view to Folder List

I'm trying to write some macros to help people using public folder
favourites on Outlook 2003 - which are a real pain to get to: switch to
folder list view, scroll down, open lots of windows etc.

I know enough about the Outlook API to get a MAPIFolder and do
Outlook.ActiveExplorer.SelectFolder Folder. This works if the "Folder List"
view is selected first. Doesn't work if the "Mailbox" or "Calendar" view is
applied (or any other view).

How do you change the current view to the "Folder List" from VBA? I suspect
it's some method against ActiveExplorer but the problem with not doing
Outlook API stuff very often, is that I don't know the entire model.

Thanks, Rob.


Ads
  #2  
Old April 17th 08, 12:58 PM posted to microsoft.public.outlook.program_vba
Rob Nicholson
external usenet poster
 
Posts: 15
Default Switch view to Folder List

How do you change the current view to the "Folder List" from VBA? I
suspect it's some method against ActiveExplorer but the problem with not
doing Outlook API stuff very often, is that I don't know the entire model.


Okay, got this bit sorted:

Application.ActiveExplorer.ShowPane olFolderList, True
Application.ActiveExplorer.SelectFolder Folder

However, whilst the focus is on the Favourites folder, it's often way down
the bottom. Is there a way to scroll down the folder list to force an item
into view?

Thanks, Rob.


  #3  
Old April 17th 08, 01:32 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Switch view to Folder List

You cannot scroll the folder list display. What you can do is set ActiveExplorer.CurrentFolder to show a particular folder, which should highlight it also in the folder list:

Set Application.ActiveExplorer.CurrentFolder = Folder

There is no SelectFolder method.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Rob Nicholson" wrote in message ...
How do you change the current view to the "Folder List" from VBA? I
suspect it's some method against ActiveExplorer but the problem with not
doing Outlook API stuff very often, is that I don't know the entire model.


Okay, got this bit sorted:

Application.ActiveExplorer.ShowPane olFolderList, True
Application.ActiveExplorer.SelectFolder Folder

However, whilst the focus is on the Favourites folder, it's often way down
the bottom. Is there a way to scroll down the folder list to force an item
into view?

Thanks, Rob.


 




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
Macro to switch to calendar/contacts/tasks with folder view in navigation pane Alex Wenzel Outlook and VBA 5 September 10th 07 06:48 AM
How do I switch from Classic View back to the new view? DonnaVP Outlook - Installation 1 March 7th 07 10:57 PM
Outlook difficulties: Unable to switch to calendar view (does not refresh right hand side view) Sid B Outlook - Calandaring 2 November 12th 06 06:09 AM
lost "customise view" so cannot switch from winter to summer view hoopeybird Outlook - Calandaring 4 August 17th 06 09:26 PM
Can view be adjusted to see BOTH Shortcut List AND Folder List? SBA Bean Outlook - Installation 1 August 10th 06 11:37 PM


All times are GMT +1. The time now is 02:53 PM.


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