PDA

View Full Version : SaveAs Dialog Box



kbilly
05-16-2008, 02:16 AM
Well this seemed like an easy thing to do but after quite a bit of searching I still haven't found a way of doing it.

Basically I just want to open the Outlook SaveAs dialog box using visual basic and be able to have a custom filename be entered automatically and the file to be saved as .msg format.

Please someone tell me this is possible.

Oorang
05-16-2008, 07:01 AM
AFAIK the only way to get that dialog in outlook is to either build your own or use the CommonDialogs api. There is some nice canned code for that here you should be able to just copy/paste: http://mvps.org/access/api/api0001.htm

kbilly
05-16-2008, 06:09 PM
So does the Common Dialogs API look and function exactly the same as the Outlook SaveAs dialog?

I cut and pasted that code into a module but can't figure out how to run it. Do I just put TestIt into a sub? and run that sub?