FileDialog object in Outlook 2002 -- how can I use it? Please help!

  • Thread starter Thread starter Rollerboy
  • Start date Start date
R

Rollerboy

Hi,

As the subject line states, I'm totally unable to use the FileDialog
object in a macro/with VBA in Outlook 2002. I've searched the help
files, the Microsoft sites etc., and follows the examples word for word,
but to no avail.

The following code snippets is how the MS staff says it works:

Dim olApp As Application
Dim dlgFile As FileDialog

Set olApp = CreateObject("Outlook.Application")
Set dlgFile = olApp.FileDialog(msoFileDialogFolderPicker)

or

Dim dlgFile As FileDialog
Set dlgFile = Application.FileDialog(msoFileDialogFolderPicker)

But neither of them works! The error message says the Application
object doesn't any such method -- which is completely true.
But the FileDialog object is part of the Office 2002 Shared Library, so
in one way or another it has to be accessible in Outlook as well, hasn't
it? (I've checked that library is loaded/referenced)

So the big questions is, how do I access FileDialog from a module in
Outlook 2002 SP 2? There has to be some other way then opening the
FileDialog via another Office app -- which is the only way I've been
able to do it.

Please bare over me if this is a lame question, but I have used all the
resources which are available for me with my current budget, and saw
this forum as a last resort.

Please post any replies directly to me as e-mail (as well as the group).
Thanks in advance for any help

Grettings from
Rollerboy AKA Øystein, Norway
 
No, that's the only way.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
No, that's the only way.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


Thanks, Sue. It wasn't the answer I was looking for, but you've
definitely saved me from spending more hours looking for a solution
which doesn't exist :-) Much appreciated, indeed.

But what about the MSComDlg (CommonDialog) ActiveX? Could it be
possible solving my problem using that approach? And if so, could you
(or sombody else who's reading this) try to push me in the right
direction with a few code snippets? I know I have to "check it" under
Tools -> References and use "Dim dlg As CommonDialog" but how to
initialize the dlg object and so on is worse. As soon as that's in the
box, I can work out the methods and propertys and how to use them by
myself.

TIA


Rollerboy/Øystein
 
Back
Top