Tech Tips Home
The Best Tech Tips And Daily Deals
Newsletter On The Internet!

WorldStart Tech Tip And Store Search
Email: Password: Login Remember Me

Like what you see here? Subscribe to the Tech Tips newsletter!   Email: Subscribe

Warning for No Subject in Microsoft Outlook 2007 Email

Tuesday, January 3rd, 2012 by | Filed Under: MS Office Help, MS Outlook

Tony from North Carolina writes:

I have a question about Microsoft Outlook 2007. I think I inadvertently deleted the pop up that tells me that I forgot to name the subject. How to I restore this function?

Hi Tony,

By default, Microsoft Outlook 2007 does not provide a reminder for missing Subject Lines. However, you can create macro that provides this functionality in Microsoft Outlook 2007. Similar to other macros in Microsoft products, you will create the macro using Visual Basic (VB). I’ll provide the code and you’ll insert and save the code in the Microsoft Visual Basic Editor. Before you create Macro, you’ll need to check the Macro Security settings. Let’s do that now.

Check and Enable the Macro Security Settings

Step 1: Launch Microsoft Outlook 2007.

Step 2: Click Tools > Macro > Security, as shown below.

Access Macro Security Settings in Microsoft Outlook 2007

Step 3: Select Warnings for all macros and then click the OK button.

Select Outlook 2007 Macro Settings

Now, you’ll create a macro that reminds you to insert a Subject line before sending the email.

Create and Save the Macro

Step 1: Ensure Microsoft Outlook 2007 is open. On the keyboard, keep the Alt key pressed and then press the F11 key. Alternatively, click the Tools > Macro > Visual Basic Editor. The Microsoft Visual Basic Editor appears.

Step 2: Expand Project1 in the Project pane.

Expand Project in Microsoft Visual Basic Editor

Step 3: Double-click ThisOutlookSession. The code pane appears.

Open the window that allows you to enter the VB code

Step 4: Copy the following code in the code pane.

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim strSubject As String
strSubject = Item.Subject
If Len(Trim(strSubject)) = 0 Then
Prompt$ = “You’ve left the Subject empty. Are you sure you want to send the Mail?
If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, “Check for Subject”) = vbNo Then
Cancel = True
End If
End If
End Sub

Tip: The text in italics is the Warning message. You can customize it.

Step 5: To save this macro, click the Save icon and then close Microsoft Visual Basic Editor.

Save the VB code and Close the Micorsoft Visual Basic Editor

Step 5: Now, restart Microsoft Outlook 2007. Click the Enable Macros button at the following prompt.

Click Enable Macros in the Microsoft Outlook Security Notice dialog box.

Now test the macro. Restart Microsoft Outlook 2007 and attempt to send an email with a blank subject line. You should get a warning message, as shown below.

Outlook 2007 Subject Line Reminder

That’s it!


Tags: , ,

13 Responses to “Warning for No Subject in Microsoft Outlook 2007 Email”

  1. Erica says:

    This works great! Thank you. Do be aware that when the text is red there is a syntax error. For me I needed to replace the quotes and re-save.

  2. Jason says:

    Erica, I found this and had to do the same thing. But great little macro Rupen, runs great!

  3. Pushpa says:

    I missed many times the subject line, it helped me a lot. Good Script!!

  4. James says:

    Erica, what do you replace the quotes with? It keeps giving me an error.

  5. Dev says:

    Nice code. Works well!

    Re-type quotes before use.

  6. Cheri says:

    Worked great – after retyping all the quotation marks.

    Outlook did message me that this removes the Debug. Plus, I have to allow the macros every time I log in. Any suggestions?

  7. ZR says:

    Retyped quotation marks and it worked a treat!


  8. Chih says:

    Great code! but how can I make the default button set to ‘No’?

  9. krlsnry says:

    work like a charm..

  10. pappu says:

    Very very helpful and good article. Steps are very clear.
    It work exactly has informed.

  11. outlook user says:

    short but sweet!

  12. Jonathan says:

    I used this today – yes I’m still using 2007 – and it worked a treat. Many thanks Rupen!

Leave a Reply

Like these tips? Get them for FREE in your email!

WorldStart's Tech Tips Newsletter

  • Tech Tips Daily - Become a tech pro! Get the very best tech and computer help sent directly to your email every weekday!

  • Tech Tips Weekly - If you don't want our Tech Tips newsletter every day, then sign up for this weekly newsletter to get the best information of the week. Sent on Fridays.

Other Newsletters

  • WorldStart's Daily Deals - Every week, we send out great deals in our Daily Deals newsletter. Many of these deals are exclusively for our Daily Deals newsletter subscribers and can't be found with our regular specials.

  • Just For Grins - Each issue includes a couple clean jokes, some funny quotes, and a hilarious reader's story. Newsletter is sent five days a week.

Enter Email Address:


Your e-mail address is safe with us!
We only use it to send you the newsletters you request. It is NEVER disclosed to a third party for any reason, ever! Plus, if you decided you don't like our newsletters (don't worry, you'll love them), unsubscribing is fast and easy.

Free Newsletter Signup

Tech Tips Daily

Become a tech pro! Get the very best tech and computer help sent directly to your email every weekday!

Tech Tips Weekly

The week's best in tech and computer help. Get your issue sent to your email every Friday!

WorldStart's Daily Deals

The very best deals on the Internet! Get a new set of incredible sales every day of the week!

Just For Grins

Clean jokes, funny quotes, and hilarious comics. Sent 5 times a week straight to your email.


Love Worldstart? Refer A Friend!

WorldStart's Premium Membership

Tip Archive