how do you "send" an email in outlook, keystrokes CTRL+Enter ???

BSALV

Banned user
Joined
Oct 31, 2010
Messages
1,651
Office Version
  1. 365
  2. 2013
  3. 2007
when you prepare mails in excel for Outlook, you can choose display, save and send.
Normally Outlook doesn't allow the "send", it comes with a popup that an external programs tries to send and you can agree or disagree ...
If you use "display" instead and manually do CTRL+Enter, the mail is send.
I try to do that now with Application.SendKeys ("^{Enter}"), True but that doesn't work.
How do you send 10-20 mailings at once without interfering.

VBA Code:
     Select Case Range("Mailmethode").Value
                                        Case "Display": .display           'zo alle 5 en dan in 1 keer
                                        Case "Send"
                                             .display
                                             DoEvents
                                             Application.Wait (Now + TimeSerial(0, 0, 5))     'wacht een beetje
                                             DoEvents
                                             Application.SendKeys ("^{Enter}"), True     'hopelijk werkt de CTRL+Enter                             'zo 1 per 1 doorzenden"
                                             DoEvents
                                             Application.Wait (Now + TimeSerial(0, 0, 10))     'wacht een beetje
                                            DoEvents
                                        Case "Save": .Save     'opslaan als concept
                                   End Select
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
it's not what i was looking for. I know that site, but there is no information about how to send the mail without those annoying popups.
If possible, i'd like to use ".display" and then perform a "CTRL+Enter" with Sendkeys (but for one or another reason, that doesn't work) or another solution.
 
Upvote 0
If you haven't tried using code from that site, rather than using the code you posted, give it a try.

If the 'pop ups' still occur using code from the suggested website, the issue is with OUTLOOK itself and not the code. For example: Outlook must be open and running at the time you
are sending emails via VBA; you must have a legitimate email address assigned to Outlook (mine is a Yahoo account). There may be other requirements as well depending on circumstances.
 
Upvote 0
Solution
i used the code of that site almost 8 years now, but it works a little bit different with 365.
Indead it's more an Outlook then an Excel-problem.
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,930
Members
449,094
Latest member
teemeren

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