Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display Outlook Folder GUI

Status
Not open for further replies.

irbk

MIS
Oct 20, 2004
578
US
I'm writing a VBA macro for Outlook 2003. I've got most of the code complete but there's one thing I can't figure out. Right now, I have the user type in the outlook folder name. What I would really like to do, is bring up a GUI of the users outlook inbox (and any subfolders) so that the user can browse through the GUI and just select the folder (to try to elliminate typing errors). I don't really know what that GUI would be called, or if calling this GUI is going to be much more difficult then I think. I hope I'm making enough since of what I'm looking for. Sorry for the vauge discription of what I'm looking for but I can't post a picture, otherwise I'd show you a little picture of what I'm looking for.
Thanks in advance
 
Search the Outlook VBA help for Inspector.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Figured out what it was I was trying to do. Borrowed the code from MS KB article
Comes down to 6 lines of code
========Start Code========
Dim olApp As Outlook.Application
Dim olSession As Outlook.NameSpace
Dim olStartFolder As Outlook.MAPIFolder
Set olApp = Application
Set olSession = olApp.GetNamespace("MAPI")
Set olStartFolder = olSession.PickFolder
========End Code==========

That pretty much displays exctally the interface that I was looking for. However, now I'm looking for a way to more customize the olSession.PickFolder window. Such as naming the window and not displaying the "New..." button.
Thanks in advance again.
 
I guess what I'm looking for, which I can't seem to find any information about, is
"Is it possible to customize the PickFolder method and, if it is possible, how do you do it".

Thanks again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top