Send Email Macro won't Send

erin649

New Member
Joined
Sep 17, 2014
Messages
2
I'm having trouble getting my code to automatically send the email. For as much research as I've done, no one else seems to have this issue... My code is below, all it does is open the email window with the to & subject filled out, but I want it to send without the user needing to do anything.

sub sendemail ()

'I have other steps prior, copying and pasting values. no issues with code

Sheets("Final Summary").Copy
Application.Dialogs(xlDialogSendMail).Show arg1:="esears@freshdirect.com", arg2:="New SKU Hierarchy and Attributes"




End Sub

Thanks for the help!!
Erin
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
thank you, yes, that worked. originally, i had a hard time determining which part I needed.

ended up using this:

Sub sendemail()
ActiveWorkbook.SendMail "recipient email", "subject line"

end sub
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

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