Skip to main content

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

Author: Xiaoyang Last Modified: 2020-07-24

Is there a way to automatically add default text in a subject when you create a new email in Outlook? This article, I 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 from the Project1(VbaProject.OTM) pane to open the mode, 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 Suject", "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. Then save and close the code window, now, create a new email, type the recipient into the To field, and enter the subject text into the Subject line, then click Send button, a prompt box will pop out to remind you adding this default text into the subject line, see screenshot:

doc auto add text to subject 2

4. And then click OK button, and the specified text has been add before the subject content, see screenshot:

doc auto add text to subject 3


Auto add default text to subject line with Kutools for Outlook

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

Kutools for Outlook : with more than 100 handy Excel add-ins, free to try with no limitation in 60 days. 

After installing Kutools for Outlook, please do as this:

1. Launch the Outlook, and then click Kutools > Options, see screenshot:

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

3. Then click OK button, now, when you create a new email, your specified default text has been inserted into the subject line automatically as following screenshot shown:

doc auto add text to subject 6

Click to download Kutools for Outlook and free trial now!


Best Office Productivity Tools

Breaking News: Kutools for Outlook Launches Free Version!

Experience the all-new Kutools for Outlook FREE version with 70+ incredible features, yours to use FOREVER! Click to download now!

πŸ€– Kutools AI : Instant pro emails with AI magic--one-click to genius replies, perfect tone, multilingual mastery. Transform emailing effortlessly! ...

πŸ“§ 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 Incoming 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 ...

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

 

 

 

Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations