Open an explorer window pick a folder

  • Thread starter Thread starter Steve Roberts
  • Start date Start date
S

Steve Roberts

I need a way to open some sort of windows explorer type interface so the
user can select a folder to save a new .pst file to from inside outlook.
They just pick the folder, the code decides what to call the .pst file.

Here is a generic idea of what I am trying to do:

User selects an outlook folder using pickfolder
Explorer window opens so the user can choose a file system folder where a
..pst file is located
Code checks for an existing .pst file in that folder
Code moves mail items to the .pst file

Thanks in advance for any suggestions you may have.

Steve
 
I suspect you are going to have to look into using the
Office common dialog box.

If you didn't need the path, you could use the regular
Windows Common Dialog box- see
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dnovba00/html/commondialogsparti.asp

but that doesn't support getting just the path. The
book "Access 2000 Developer's Handbook volume 1: Desktop
Edition", by Ken Getz, Paul Litwin, & Mike Gilbert, covers
using the Office dialog box to do what you want, starting
on p.1254, and I believe the techniques illustrated will
work with Outlook. Make sure you get vol. 1: Desktop
Edition, NOT vol.2: Enterprise Edition. (Or else get both-
I did & don't regret it! ;-) The ISBN is 0-7821-2370-8.
You MIGHT be able to get the code from the website for the
book; look around at www.sybex.com. If you can't find the
Access 2000 edition, the 2002 edition probably has the
same information. At any rate, the whole series is
excellent.

Perhaps someone knows of a web page on doing this in
Outlook?

Good luck.


-Andrew Cushen
================================
 
Back
Top