Send Email with attachment (1 Viewer)

jamesormi

Registered User.
Local time
Today, 09:04
Joined
Nov 19, 2008
Messages
20
Hi,

Does anyone have any idea on how to send an email with a file attached using VBA?

Any code examples would be greatly appreciated.

Thanks in advance.
 

MarkK

bit cruncher
Local time
Today, 01:04
Joined
Mar 17, 2004
Messages
8,180
Do a search on 'CDO' or 'Collaboration Data Objects'. There are a bunch of examples of this already handled on this site.
Cheers,
 

ianclegg

Registered User.
Local time
Today, 09:04
Joined
Jul 14, 2001
Messages
58
I Find the easiest way is to use docmd.sendobject

eg

docmd.sendobject acsendtable,"audits",acformatxls,"To email Addres","CC Address etc",,"Subject"

see the format in the helpfiles

Regards

Ian Clegg
 

Users who are viewing this thread

Top Bottom