Getting Outlook to Find and Jump to a Folder in Folder List

Posted on 2012-08-27
Medium Priority
Last Modified: 2012-08-29
I have been using the excellent work of  chris_bottomley to iterate through the Outlook folder list to find a folder:


I am wondering if someone can help me adapt this macro slightly to do the following:

1) In the current macro, once the folder is found, the folder list jumps to that spot. That found folder is highlighted, but if it is too far down (or up) in the list, it is not visible in the folder list and I have to scroll to it. I would like it to both find and jump to be visible on the screen.
2) Instead of displaying the messages in the now found folder, as the macro does now, I would like to keep the messages displayed that were visible when the macro was called. This would allow me to easily copy some of these messages to the found folder which is now visible on the left.

I would be grateful for anyone that can show me how to adapt the macro code in the link above to do these things differently.

Question by:KenHadley
LVL 71

Accepted Solution

Qlemo earned 2000 total points
ID: 38341962
I recommend to replace line 31:
  Set olApp.ActiveExplorer.CurrentFolder = tgtFolder
That will open a new Outlook Explorer window. Only con is that you need to close that window if unwanted, as the loop will open a new window for each go. But your current folder will not change, and the new Explorer will scroll to the correct folder in the list and show the content of it.

Author Closing Comment

ID: 38345504
Yes, thank you, that works.

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
Today as you open your Outlook, you witness an error message: “Outlook is using an old copy of your Outlook Data File…”. Probably, Outlook is accessing an old OST file.
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question