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!

Outlook Attachment Reminder

Status
Not open for further replies.

DbHd

Programmer
Joined
Dec 20, 2004
Messages
39
I often forget to attach a file when sending email. I have code to remind me with a yes/no/cancel msgbox, but I want to embelish that by opening Windows Explorer if they click yes to add the attachment.

So, how do you open Windows Explorer by code from within Outlook 2003?
 
You may use this function:
Code:
Function PickFile()
Dim f As Object
Set f = CreateObject("SAFRCFileDlg.FileOpen")
f.OpenFileOpenDlg
PickFile = f.FileName
Set f = Nothing
End Function

Or use something like this:
CreateObject("WScript.Shell").Run "C:\"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top