How do you auto say yes to using outlook during excel macro

Maui

Board Regular
Joined
Jan 13, 2006
Messages
159
when using excel macro to create email I get a pop up box that says something like another application is trying to send mail, could be virus. How can you auto say yes to this.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
wongm003 gave this solution in a posting today and it works with OE and will test it on Lotus Notes later on today.

Private Sub Workbook_BeforeClose(Cancel As Boolean)

'save workbook
ActiveWorkbook.Save

If MsgBox("Submit for processing?", vbYesNo) = vbYes Then
'attach email and send to recipients...

'set recipients
arRecp = Array("111@sympatico.ca", "222@yahoo.com")

'set subject line
strSubj = "For your review"

'send email
ActiveWorkbook.SendMail Recipients:=arRecp, Subject:=strSubj

End If

End Sub


With OE the prompt is very similar to the one described here BUT without the mention of "viruses" .
I visited the link offered here and installed the free software and this did not eliminate this particular prompt.
Is the a solution to bypass this Outlook Express security measure?
Thank you
Nick
 
Upvote 0
Got the answer from Ron de Bruin's site
"Outlook Express


If you configure Outlook Express as the default mail handler (or simple MAPI client) on the

General tab, Outlook Express processes requests by using Simple MAPI calls.

Some viruses can exploit this functionality and spread by sending copies of e-mail messages

that contain the virus to your contacts.

By default, Outlook Express 6 prevents e-mail messages from being sent programmatically from

Outlook Express without your knowledge by displaying a dialog that enables you to send or not

send the message.

If you regularly use an application that uses Simple MAPI calls to send e-mail as yourself,

you may want to disable this protection as follows:


1 : Start Outlook Express, and then on the Tools menu, click Options.
2 : Click the Security tab, and then click to remove the check mark from the warn me when other

applications try to send mail as me check box.
3 : Click OK to close the Options dialog box.
 
Upvote 0

Forum statistics

Threads
1,203,605
Messages
6,056,269
Members
444,853
Latest member
sam69

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