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 / General MS Word Questions / April 2006

Tip: Looking for answers? Try searching our database.

Macro for e-mailing a Word file as an attachment

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jon.mullich@wamu.net - 21 Apr 2006 15:00 GMT
I have a macro that attached the file as an e-mail. How do I edit the macro
to pre-fill the e-mail recipient and subject line on the e-mail? And can it
be edited to send the e-mail within the macro?

What is does now is open the  Outlook e-mail window with the file attached,
with no recipient filled in and the subject the name of the file. What I want
it to do is have the recipient and subject pre-filled and automatically send
the e-mail attachment without any additional actions.

I'm on Office 2003. Here's my current macro:

Sub attach()
'
' attach Macro
' Macro recorded 04/20/2006 by Jon Mullich
'
    ActiveDocument.SendMail
End Sub
Doug Robbins - Word MVP - 26 Apr 2006 19:42 GMT
See the article "How to send an email from Word using VBA" at:

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

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

>I have a macro that attached the file as an e-mail. How do I edit the macro
> to pre-fill the e-mail recipient and subject line on the e-mail? And can
[quoted text clipped - 18 lines]
>     ActiveDocument.SendMail
> End Sub
 
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.