Thread: Auto-Attach
View Single Post
  #1  
Old May 20th 07, 11:16 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Auto-Attach

Have you looked at the MailItem.Attachments.Add method? That's what you use to attach a file programmatically.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"HelpMeSue!" u34098@uwe wrote in message news:72020bc876896@uwe...
I am trying to write a subroutine that automatically attaches a files of
varying type (.zip, .xls, ...) from varying locations (C:\My Documents, C:\My
Pictures, ...) to some Outlook forms that I've created. I think this would
be best accomplished with a command button on the compose page of the form.
I'm also pretty sure that this would require a message field in the form to
work properly. Any ideas?

Ads