lolzfidget89
New Member
- Joined
- Dec 12, 2012
- Messages
- 3
Hi everyone,
I have created a command box to send an email:
Private Sub CommandButton1_Click()
ActiveWorkbook.SendMail "xxxxxx@xxxxxxx.com"
End Sub
The command button works, but I get a message saying the following "A program is trying to automatically send e-mail on your behalf. Do you want to allow this?" Any way to get rid of this? No worries if not - but this form will be used externally and I don't want my projects to get confused with it.
Is it possible for a msgbox to pop up before the email is actually sent? I want the message to read something like "Are you sure you want to proceed?" with the options "OK" "Cancel"
Thank you!
I have created a command box to send an email:
Private Sub CommandButton1_Click()
ActiveWorkbook.SendMail "xxxxxx@xxxxxxx.com"
End Sub
The command button works, but I get a message saying the following "A program is trying to automatically send e-mail on your behalf. Do you want to allow this?" Any way to get rid of this? No worries if not - but this form will be used externally and I don't want my projects to get confused with it.
Is it possible for a msgbox to pop up before the email is actually sent? I want the message to read something like "Are you sure you want to proceed?" with the options "OK" "Cancel"
Thank you!