Microsoft Outlook 2007, Deleted The POP Up, Restore Function

Latest Tips Info. NEWS, Updates

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!
~Rupen