Skip to main content

How to auto add default text to the subject line in Outlook?

Author: Xiaoyang Last Modified: 2025-04-09

Is there a way to automatically add default text in a subject when you create a new email in Outlook? This article will talk about some useful ways for you to solve this job in Outlook.

Auto add default text to subject line with VBA code

Auto add default text to subject line with Kutools for Outlook


Auto add default text to subject line with VBA code

To add default text into the subject line automatically, please apply the following VBA code.

1. Hold down the "Alt" + "F11" keys to open the "Microsoft Visual Basic for Applications" window.

2. In the "Microsoft Visual Basic for Applications" window, double click "ThisOutlookSession" under "Project1 (VbaProject.OTM)" to open the module, and then copy and paste the following code into the blank module.

VBA code: Auto add default text to subject line

Public xFlag As Boolean
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim xText As String
On Error Resume Next
If xFlag = False Then
    xText = "Skyyang-"
    If InStr(Item.Subject, xText) = False Then
L1:     xText = InputBox("Input Subject", "Kutools for Outlook", xText)
        If xText = "" Then
            xFlag = False
            Cancel = True
            Exit Sub
        End If
        Item.Subject = xText & " " & Item.Subject
        xFlag = True
        Cancel = True
    End If
Else
    xFlag = False
    xText = "Skyyang-"
    If InStr(Item.Subject, xText) = False Then
      GoTo L1
    End If
End If
End Sub

Note: In this code, the text "Skyyang-" is the text that you want to add into the subject as default, please change it to your own.

doc auto add text to subject 1

3. Press "Alt" + "Q" to close the "Microsoft Visual Basic for Applications" window.

Now you need to create a new email to test the result.

4. Create a new email, enter the recipient in the "To" field, and type the subject into the "Subject" line. Then click the "Send" button, a prompt box will pop up asking if you want to add the default text into the subject line.

doc auto add text to subject 2

5. Click the "OK" button, and the default text will be added before the subject content automatically.

doc auto add text to subject 3

Auto add default text to subject line with Kutools for Outlook

Here is an easy method to help you auto add default text to the subject line. With "Kutools for Outlook" utility, you can quickly finish this task.

Unlock ultimate email efficiency with Kutools for Outlook! Access 70 powerful features absolutely free, forever. Download the Free Version Now!

1. Launch Outlook, and then click "Kutools" > "Options".

doc auto add text to subject 4

2. In the "Options" dialog box, click the "New" tab, then check "Add date into subject when creating new email" option, and enter the default text you want to display in the subject line automatically.

doc auto add text to subject 5

3. Click the "OK" button. Now when you create a new email, the specified default text will be inserted into the subject line automatically as shown below:

doc auto add text to subject 6

Best Office Productivity Tools

Breaking News: Kutools for Outlook Launches Free Version!

Experience the all-new Kutools for Outlook with 100+ incredible features! Click to download now!

πŸ€– Kutools AI : Uses advanced AI technology to handle emails effortlessly, including replying, summarizing, optimizing, extending, translating, and composing emails.

πŸ“§ Email Automation: Auto Reply (Available for POP and IMAP)  /  Schedule Send Emails  /  Auto CC/BCC by Rules When Sending Email  /  Auto Forward (Advanced Rules)   /  Auto Add Greeting   /  Automatically Split Multi-Recipient Emails into Individual Messages ...

πŸ“¨ Email Management: Recall Emails  /  Block Scam Emails by Subjects and Others  /  Delete Duplicate Emails  /  Advanced Search  /  Consolidate Folders ...

πŸ“ Attachments ProBatch Save  /  Batch Detach  /  Batch Compress  /  Auto Save   /  Auto Detach  /  Auto Compress ...

🌟 Interface Magic: 😊More Pretty and Cool Emojis   /  Remind you when important emails come  /  Minimize Outlook Instead of Closing ...

πŸ‘ One-click Wonders: Reply All with Attachments  /   Anti-Phishing Emails  /  πŸ•˜Show Sender's Time Zone ...

πŸ‘©πŸΌβ€πŸ€β€πŸ‘©πŸ» Contacts & Calendar: Batch Add Contacts From Selected Emails  /  Split a Contact Group to Individual Groups  /  Remove Birthday Reminders ...

Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Instantly unlock Kutools for Outlook with a single click. Don't wait, download now and boost your efficiency!

kutools for outlook features1 kutools for outlook features2