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 / November 2004

Tip: Looking for answers? Try searching our database.

Access email fields To Bcc Subject in word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
condor - 04 Nov 2004 21:30 GMT
i create a word document as email
lpDisp = docs.Add(Optional, Optional, wdNewEmailMessage, Optional);
word is open as email with To Bcc Subject
how can i set the email fields to bcc subject?

thanks
condor
Doug Robbins - 12 Nov 2004 00:51 GMT
Using the second method in the article "How to send an email from Word using
VBA" at:

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

gives you access to the Outlook Object Model that will allow you to do what
you want.
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

>i create a word document as email
> lpDisp = docs.Add(Optional, Optional, wdNewEmailMessage, Optional);
[quoted text clipped - 3 lines]
> thanks
> condor
condor - 12 Nov 2004 09:49 GMT
i have resolve for the moment with this code because i need RTF text to insert:

doc.AttachDispatch(lpDispDocs);
MsoEnvelopeVB.AttachDispatch(doc.get_MailEnvelope());
mailItem.AttachDispatch(MsoEnvelopeVB.get_Item());
mailItem.put_To(lpszTO);
mailItem.put_Subject(strSubject);
selection.AttachDispatch(objWord.get_Selection());
selection.Paste(); // RTF text
WindowWord.AttachDispatch(doc.get_ActiveWindow());
WindowWord.put_EnvelopeVisible(TRUE);

thanks for yuor help
condor

> Using the second method in the article "How to send an email from Word using
> VBA" at:
[quoted text clipped - 10 lines]
> > thanks
> > condor
 
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.