J.R. Sitman
asked on
How to Prevent blank outlook subject lines
I found a post on how to stop a user from sending a blank subject line (code below) however, when the user opens outlook it warns them to disable macros. I don't want the users to know I've added this code so my question is how do I stop the macro warning when they first open outlook? I've attached the warning.
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If Item.Subject = "" Then
'Edit the message and the popup caption on the next line as desired.'
MsgBox "Emails cannot be sent with a blank subject. Please enter a subject and send again.", vbCritical + vbOKOnly, "Blank Subjects"
Cancel = True
End If
End Sub
macro.png
Private Sub Application_ItemSend(ByVal
If Item.Subject = "" Then
'Edit the message and the popup caption on the next line as desired.'
MsgBox "Emails cannot be sent with a blank subject. Please enter a subject and send again.", vbCritical + vbOKOnly, "Blank Subjects"
Cancel = True
End If
End Sub
macro.png
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
OUtlook 2010 has built in Functionality that Causes a POP UP window if a user creates an email and goes to send it
They would receive an Pop Up that states
"Do you want to send this message without a subject?"
Dont Sent / Send Anyway
They have to actaully select send anyway for it to be sent
They would receive an Pop Up that states
"Do you want to send this message without a subject?"
Dont Sent / Send Anyway
They have to actaully select send anyway for it to be sent
ASKER
thanks
ASKER