Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2005

Tip: Looking for answers? Try searching our database.

Emailing Document Using VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thomas M - 19 Jan 2005 07:38 GMT
Word 2000

I have a project that I need to finish in the next 3 days (because I'm
moving on to a new job next Monday).  I think that I can finish off all
the major features on my own, except for one.  I need to make the code
attach a copy of the current document to an email message.  I've never
worked with that kind of operation, so I have no idea how to do it, and
I'm concerned that given the short time frame and the other things that I
need to finish up before moving on to my next job, that I won't really
have time to research the issue.

One thing that will hopefully make the task easier is that there is an
email template that will be used when sending the email.  The template
contains the subject line and body text, so all that needs to be done is
to pass the email address to the template.

Can someone give me the code for passing an email address to an
email template, opening that template, and attaching the current
document?

Thanks for any help that you can provide.

--Tom
Doug Robbins - 19 Jan 2005 10:33 GMT
See the article "How to send an email from Word using VBA" at:

http://word.mvps.org/FAQs/InterDev/SendMail.htm

and for dealing with attachments, the code in the article "Mail Merge to
E-mail with Attachments" at

http://word.mvps.org/FAQs/MailMerge/MergeWithAttachments.htm

Signature

Please respond to the Newsgroup for the benefit of others who may be
interested.   Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP

> Word 2000
>
[quoted text clipped - 19 lines]
>
> --Tom
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.