Email

G

Guest

Hi

I am using a macro to drop completed workbooks, or parts of completed
workbooks into an email, using Application.Dialogs(xlDialogSendMail).Show.

As the various mails are sent to specific groups or department mail box's I
would like to have the To: and CC: fields completed automatically. Can this
be acheived from the macro run in excel.

Thanks
Richard
 
B

Bob Phillips

This dialog takes 3 parameters, recipients, subject and return_receipt.

So you can use

Application.Dialogs(xlDialogSendMail).Show
"(e-mail address removed),[email protected]","Work update"

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
G

Guest

Apologies I hope I'm not being totally thick, but I now get the following:

Compile error:
Expected: line number or label or statement or end of statement
 
B

Bob Phillips

Probably wrap-around, try

Application.Dialogs(xlDialogSendMail).Show _
"(e-mail address removed),[email protected]","Work update"


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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