How to Autofill Subject Line in Outlook?

Last Updated on January 27, 2024 by Amit Bansal

Using Autofill in Microsoft Outlook lets you save information needed for common messages. For example, you can save frequently used addresses, phone numbers, and date/time information.

Autofill also allows you to enter the text that Outlook will insert in the “To” section of a message.

The subject line of an email reveals the title of your email to the recipient, many users want to set up an attachment name as the email subject in Outlook.

How do prevent typing the same text repeatedly? The role of autofilling the subject lines for new email messages comes into play.

In this article, you can learn related issues and methods to execute the autofill in the Outlook subject line.

Outlook quick steps subject one of the options allows the user to automatically fill the subject line with the specific content prescribed by the user.

Here is the step-by-step guide

  • Open Outlook >> Click Home Tab
  • Click the Create New in the Quick Steps box on the ‘Quick Steps‘ junction.
outlook quick steps subject

Edit quick steps popup appears. Initially name your quickstep and enter the name in the name section, secondly Choose an Action box, and select the New Message in the Respond section from the drop-down list.

outlook subject line

In the same dialog box ‘Edit Quick Steps’, click on Show Options just below the To box.

Enter your subject in the Subject Box, and you can flag your message and set the important criteria, there is a short key also available according to your choice, and Finally, Click Finish.

quick steps

Above step customize the quickstep button for the new mail message. You can check out the Quickstep junction in the home tab, your Quickstep button grabs the position which was not there earlier.

changing subject line in email

Click the To Mail Smartly button and you will be redirected to the new mail message tab and the subject line is already filled with the subject.

Auto-populate Date in Outlook subject line

When sending emails through Outlook, the recipient can effortlessly track the received emails based on dates.

Indeed, Outlook offers multiple ways to sort and categorize emails, making it a powerful tool for efficient communication.

However, there are times when I find it crucial to have the current date explicitly mentioned in the subject line.

It serves as an immediate timestamp, ensuring clarity and immediate reference for both the sender and the recipient.

To do so here is the step-by-step tutorial ~

Most Outlook users enter the date, time, or both manually in the subject line, which is hectic to enter every time.

Auto insert today’s date in the outlook subject line brings professionalism & perfection to your work.

  • Step 1 – Open Outlook >> Home Tab >> New Mail >> Developer >> Click Developer Tab
insert todays date in outlook
  • Step 2 – This step walks you through another page with multiple options, in this scenario click right to the Subject box, and select the properties.
auto populate date
  • Step 3 – The properties dialog box pops up, click on the value tab, find the Initial value, type Date () click the OK button, if you like to mention the time you need to type Now () in the Edit box, which will automatically enter the current time into your subject line.
outlook create email
  • Step 4 – The next step is to save the page, Click the Publish >> Publish form on the developer tab.
Publish form as on the developer tab
  • Step 5 – Enter the name of the file in the display name and click publish.
Auto-populate Date in outlook

That’s the end of part I, you have created the customized message board which allows you to insert the current date or time for creating a new message.

It’s time to learn how to insert today’s date in the Outlook subject line

  • Click the Choose Form button on the Developer tab of the main Outlook screen, no need to open new mail this time.
outlook timestamp
  • Click on the ‘Look in’ box and select the Personal Forms Library.
  • You can find your saves which you have created in part I.
  • Select and click open.
publisher date
  • After clicking open, the new mail dialog box appears and you can check a new tab created with the same name you have given to the form, and the subject line is automatically filled with the current date.
autofill subject line in outlook

Autofill subject line using VBA

VBA coding is the programming you can easily manually insert in your Outlook which can work for you in many different tasks, here you can simply copy and paste the given codes into Outlook to autofill the subject line.

Here is the step-by-step tutorial “How to insert VBA in Outlook?

  • Open Outlook >> Click Alt F11 >> Microsoft Visual Basic page appears. (It’s completely different and unfamiliar to most users), but there is nothing to worry about.
  • The next step is to insert a module by clicking the Insert >> Module.
  • Copy (Ctrl + C and Paste Ctrl + V the below code)

[code language=”xml”]

Sub New_Secure_Email()
Dim MItem As MailItem
Set MItem = Application.CreateItem(olMailItem)
MItem.Subject = “your preset subject”
End Sub


In the fourth line of VBA, you must replace your present subject with the subject line you like to fix for your email.

Finally, you are ready to go, you can click the Run button on the toolbar or simply press the F5 key to run this VBA code.

Autofill Subject Line With VBA In Outlook

How to Autofill the Email Subject line with the Attachment Name in Outlook?

Manually typing the attachment name in the email subject line is another hectic process, VBA is the only solution that automatically reads and imposes the attachment name into the subject line.

The steps are exactly the same to insert VBA Code into Outlook, all you must do (Copy Ctrl + C and Paste Ctrl + V the below code).

[code language=”xml”]

Public WithEvents olInspectors As Outlook.Inspectors
Public WithEvents olMail As Outlook.MailItem

Private Sub Initialize_handlers()
Set olInspectors = Application.Inspectors
End Sub

Private Sub olInspectors_NewInspector(ByVal Inspector As Inspector)
Dim olItem As Object
Set olItem = Inspector.CurrentItem
If TypeName(olItem) = “MailItem” Then Set olMail = olItem
End Sub

Private Sub olMail_AttachmentAdd(ByVal Attachment As Attachment)
If olMail.Subject = “” Then
‘If you don’t want the prompt,
‘Just delete the Msgbox line and its corresponding “End if”.
If MsgBox(“Do you want to use the attachment name as the subject”, vbYesNo) = vbYes Then
olMail.Subject = Attachment.DisplayName
End If
End If
End Sub


Here is something new autofill the subject line in Outlook, I enjoy working with this. After using it, please comment below and share your experience.


In summary, the “Autofill Subject Line” on Outlook is amazingly useful and can help you save time. It helps to save time because you don’t have to type the same message over and over.

Also Read:

Amit Bansal

Hello, my name is Amit Kumar Bansal, and I am the founder of Through this blog, I focus on Microsoft Outlook, offering insightful and informative content. Additionally, I produce educational videos on YouTube to further enhance the understanding of my audience. visit my YouTube Channel

View all posts

Leave a Comment