Sending E-mails from within Excel

Munich

New Member
Joined
Jul 10, 2006
Messages
31
I have an icon in an excel file that has a macro associated with it that executes the "Send To - Mail Recipients (As Attachment)" function.

Basically Application.Dialogs(xlDialogSendMail).Show

I there a way to use this command and have the To field in the resulting e-mail automatically filled in? (And while asking, the Subject field too?)

Thanks in Advance

Ernie
Munich
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I owe these two methods to previuos discussions here on mrexcel forum:

Either
ActiveWorkbook.SendMail Recipients:="ask@mrexcel.com", Subject:="Hi"

Or
Application.Dialogs(xlDialogSendMail).Show _
arg1:="ask@mrexcel.com", _
arg2:="This goes in the subject line"

Bye,
 
Upvote 0
Anthony47,

Thanks.

Both sets of code work great. I makes a 360 feedback tool work that much better now.

Ernie
 
Upvote 0

Forum statistics

Threads
1,224,394
Messages
6,178,338
Members
452,841
Latest member
GenAkaman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top