Access email fields To Bcc Subject in word

C

condor

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
 
D

Doug Robbins

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.
--
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
 
C

condor

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top