Email spreadsheet

B

bbc1

I have a sheet that I have created a button on that when its pressed opens
outlook up, would like as part of the macro that it places the employee's
email address's in it and sends it.
Sub Email()
'
' Email Macro
''

'
Application.Dialogs(xlDialogSendMail).Show
End Sub

Outlook opens corrrectly with the file attached and the subject completed
but I have to select the persons email address from the contacts dropdown.
 
S

Sheeloo

With the mail object use the following;

..To = "(e-mail address removed)"

basically use the same syntax as populating SUBJECT field...
 
B

bbc1

Sorry am not sure how to place this in the code could I have the actual code
I need to insert
 
J

JP

From mrexcel.com:

Dim Send As Dialog
Send = Application.Dialogs(xlDialogSendMail).Show("(e-mail address removed)",
"Subject Line", True)

--JP
 

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