Hello everyone!
I'm working on a macro based on following example www.howto-outlook.com/howto/senddocasmail.htm
Does anyone knows if there's a way to specify cc, bcc and subject line in Word's macro? I did some research and wasn't able to find anything word related. Something's telling me that I'll have to do a different macro for outlook message and go from there.
Can someone help me out?
Thank you
Word 2007 VBA: bcc and cc fields?
-
-
Re: Word 2007 VBA: bcc and cc fields?
This is how you can set a bcc:
Code
Display MoreSet objRecip = oItem.Recipients.Add("[EMAIL="[email protected]"][email protected][/EMAIL]") objRecip.Type = olBCC If Not objRecip.Resolve Then strMsg = "Could not resolve the Bcc recipient. " & _ "Do you want still to send the message?" res = MsgBox(strMsg, vbYesNo + vbDefaultButton1, _ "Could Not Resolve Bcc Recipient") If res = vbNo Then Exit Sub End If End If
This is how you set the subject:
-
Re: Word 2007 VBA: bcc and cc fields?
awesome! it worked. thank you a lot!
-
Re: Word 2007 VBA: bcc and cc fields?
Do you think it's possible to autosend this message right away without clicking on "Sent" button?
-
Re: Word 2007 VBA: bcc and cc fields?
I solved my last question. Ty for helping me.
-
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!