Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Program data into the "To, Cc and Introduction" fields

9 views
Skip to first unread message

smar

unread,
Jan 29, 2008, 10:36:00 PM1/29/08
to
I am in MS Word 2003 and I select the E-Mail icon on the Toolbar. It brings
up the
Outlook 2003 "To:..., Cc..., Subject: and Introduction:" fields at the top
of the Word document, along with some of the Outlook toolbar icons.

I want add some code a MS Word macro to insert email addresses into the To:
and Cc: fields, instead of typing them in over and over. I would some
appreciate sample code. I tried using the MS Word group with no luck, so I
am trying the Outlook group

Michael Bauer [MVP - Outlook]

unread,
Jan 30, 2008, 12:53:52 AM1/30/08
to

You can use this sample for Outlook, not word:
http://www.vboffice.net/sample.html?mnu=2&pub=6&lang=en&smp=47&cmd=showitem

--
Best regards
Michael Bauer - MVP Outlook
Synchronize Outlook Categories:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Sue Mosher [MVP-Outlook]

unread,
Jan 30, 2008, 11:28:17 AM1/30/08
to
Try this Word macro:

Sub AddInfoToMsg()
Dim env As Office.MsoEnvelope
Set env = ActiveDocument.MailEnvelope
With env
.Introduction = "My introduction"
.Item.To = "rec...@domain.dom"
.Item.cc = "rec...@domain.dom"
End With
Set env = Nothing
End Sub

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"smar" <sm...@discussions.microsoft.com> wrote in message news:48B3F1EA-E7D5-405C...@microsoft.com...

smar

unread,
Jan 30, 2008, 1:01:02 PM1/30/08
to
Many thanks for the program code, it worked GREAT...

mackm...@gmail.com

unread,
Jan 16, 2017, 1:36:30 AM1/16/17
to
0 new messages