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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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,222,398
Messages
6,165,769
Members
451,986
Latest member
samwize

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