On Apr 18, 3:41 pm, bobh <vulca...@isp.comwrote:
Hi All,
I have an AccessXP vba procedure which attaches a report to Groupwise
and sends it to recipients. That line of code looks like this
MailApplication.Recipients.Add strTo
this line of code adds the name in 'strTo' to the 'To' line of the
GroupWise email.
What is the line of code that I would use to add a name to the 'CC'
line of the email???
thanks
bobh.
This question is rather out of my realm of experience, but have you
tried using MailApplication.CC to see if that exists? I've seen some
suggestions to use .To, .CC, and .BCC as opposed to a Recipients
array. I tried these, and they worked fine for Outlook. If that
doesn't work, a suggestion I found on a German Office discussion board
continues still uses the Recipients array to add all recipient types
then targets specific recipient types as follows:
MailApplication.Recipients.Add (BcEmpfänger) 'wenn kein Bc, dann
Zeile löschen
With MailApplication.Recipients(2) '(2), wenn Empfänger +
BcEmpfänger
.TargetType = 2 ' <-- For the BCC type
End With
(
http://ms-office-forum.de/forum/showthread.php?t=117227)
Since I no longer have Groupwise to play with, I cannot test this
code, but I would imagine that TargetType of 1 would be for a standard
CC as opposed to a BCC.
HTH
- GH