How to assign a quick launch button to a template in Outlook?
When using template in Outlook, you have to get into the Choose Form window, find the template saving location and then select to open it. This may be somewhat troublesome for most of us. Here I will show you a method to assign a quick launch button to open a specified template in Outlook. After assigning the button, the template will be opened quickly with only one click.
Assign a quick launch button to a template with VBA code
- Auto CC/BCC by rules when sending email; Auto Forward Multiple Emails by rules; Auto Reply without exchange server, and more automatic features...
- BCC Warning - show message when you try to reply all if your mail address is in the BCC list; Remind When Missing Attachments, and more remind features...
- Reply (All) With All Attachments in the mail conversation; Reply Many Emails at once; Auto Add Greeting when reply; Auto Add Date&Time into subject...
- Attachment Tools: Auto Detach, Compress All, Rename All, Auto Save All... Quick Report, Count Selected Mails, Remove Duplicate Mails and Contacts...
- More than 100 advanced features will solve most of your problems in Outlook 2021 - 2010 or Office 365. Full features 60-day free trial.
Assign a quick launch button to a template with VBA code
Please do as follows to assign a quick launch button to a template in Outlook.
1. Press the Alt + F11 keys to open the Microsoft Visual Basic for Applications window.
2. In the Microsoft Visual Basic for Applications window, click Insert > Module. Then copy below VBA code into the Code window.
VBA code: Macro to open template
Sub MakeTemplate()
'Update by Extendoffice 2018/5/24
Dim xDialog As FileDialog
Dim xExcel As Excel.Application
Dim xFilePath As String
Dim xNewItem As Object
On Error Resume Next
xFilePath = CreateObject("WScript.Shell").SpecialFolders(5)
xFilePath = xFilePath & "\Microsoft\Templates\template test.oft"
Set xNewItem = Outlook.Application.CreateItemFromTemplate(xFilePath)
xNewItem.Display True
Set xNewItem = Nothing
End Sub
Note: In the code, "\Microsoft\Templates\template test.oft" is the default template saving path, and template test is the name of the template you will open. Please change them as you need.
3. Click Tools > References. Then enable the Microsoft Excel Object Library box as below screenshot shown.
4. Press the Alt + Q keys to close the Microsoft Visual Basic for Applications window.
5. Click the Customize Quick Access Toolbar > More Commands. See screenshot:
6. In the Outlook Options dialog box, you need to:
6.1 Select Macros from the Choose commands from drop-down list;
6.2 Select the Project1.MakeTamplate in the commands list box;
6.3 Click the Add button;
6.4 Click the OK button. See screenshot:
7. Then the macro button is added on the Quick Access Toolbar. Click on the button will open the specified template immediately. See screenshot:
Related articles:
Best Office Productivity Tools
Kutools for Outlook - Over 100 Powerful Features to Supercharge Your Outlook
β Email Automation: Auto Reply (Out of Office) / Schedule Send emails / Auto CC/BCC / Advanced Auto Forward / Auto Add Greating ...
β Email Management: Easily Recall Emails / Block Scam Emails / Delete Duplicate Emails / πAdvanced Search / Consolidate Folders ...
π Attachments Pro: Batch Save / Batch Detach / Batch Compress / Auto Save / Auto Detach / Auto Compress ...
π Interface & Interaction Magic: πMore Pretty and Cool Emojis / Brings Browser Tabs Right Into Your Outlook / Minimize Outlook Instead of Closing ...
π One-click Wonders: Reply All with Incoming Attachments / Anti-Phishing Emails / πShow Sender's Time Zone / Send to Recipients Separately ...
π©πΌβπ€βπ©π» Contacts & Calendar: Batch Add Contacts From Selected Emails / Split a Contact Group to Individual Groups / Remove Birthday Reminders ...
Over 100 Features Await Your Exploration! Click Here to Discover More.