Link to home
Start Free TrialLog in
Avatar of J.R. Sitman
J.R. SitmanFlag for United States of America

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
ASKER CERTIFIED SOLUTION
Avatar of omgang
omgang
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of J.R. Sitman

ASKER

ok, the article looks good and simple.  I need to figure out how to give the users access to the Microsoft Tools, because they are using Citrix and have restricted access.  I'll work on it.
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
thanks