• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

How to Open Outlook Templates and Files using Toolbar Buttons

Slipstick Systems

› Outlook › How to Open Outlook Templates and Files using Toolbar Buttons

Last reviewed on May 20, 2025     124 Comments

When you want to open a template, you need to go through the Choose Form dialog, which is a few more steps than most users want to take. In older versions of Outlook you could create Hyperlink buttons but Outlook 2010 and newer doesn't support hyperlink buttons and tighter security in Outlook now means you need to respond to a warning dialog before the template (or hyperlinked file) opens.

A PowerShell version to open templates is at Open Outlook Templates using PowerShell

You have some options to make using templates easier: Pin the template to Outlook's taskbar icon, Copy it into a folder in your data file, drag it to your desktop, or use a macro to open it.

If the template does not contain controls that require you to open it from the Template folder, you can store the template in other locations, including the Documents folder or Desktop; pin it to the Outlook icon on the taskbar, or copy it into a folder in your Outlook data file.

Pinned Templates

All email templates and some calendar and contacts templates can be opened using these methods. Templates containing scripts or some controls must be opened using the Template dialog.

Email templates that are pinned to the Outlook button on the taskbar are accessed by right-clicking on the Outlook button or you can copy the template to a folder in your Outlook data file. Recently used templates that are not already pinned may be listed on the Outlook icon's right-click menu.

pinned and recent templates

To pin a template in windows 11 open it then look on the jump menu and pin it. In windows 10 and older, you can drag it from the template folder at C:\Users\%username%\AppData\Roaming\Microsoft\Templates and drop on the taskbar button. To copy it to an Outlook folder, drag it to the desired folder. (I use a folder named Templates).
drag the template to pin

 

Open templates using a toolbar button

If you prefer to use a button on Outlook's toolbar, you can use a macro to open the template. To disable the warning message, you need to set a registry key.

See Disable the Unsafe Hyperlink Warning when Opening Attachments for the instructions to disable the warning dialog and the Open or Save dialog. Use this registry value with Outlook 2010 and newer if you add files to Outlook's Shortcut navigation pane.

To create a button on the toolbar that will open a template in Outlook 2010 and up, you need to use a macro as it does not support hyperlink buttons found in older versions of Outlook. Additionally, opening a template hyperlinked to a toolbar button in Outlook 2007 brings up a security dialog.

If the template contains custom fields, the customizations will be disabled, and the template will be blank. These templates need to be opened using the Choose Form dialog. When you try to open the form, a dialog will open with this message:

Access to this form template file is blocked. If you trust the source of the form, on the Home tab, click New Items, click More Items, and then click Choose Form. In the Look In list, click User Templates in the File System, and then select and open the template you want. Get more information about opening an .oft file.

Template warning

The solution

Create a macro that replicates opening a template from the Choose Form dialog using the Application.CreateItemFromTemplate method:

Sub MakeItem()
Set newItem = Application.CreateItemFromTemplate("c:\path\template.oft")
newItem.Display
Set newItem = Nothing
End Sub 

Press Alt+F11 to open Outlook's VB Editor then copy and paste this macro into ThisOutlookSession. Add it to the ribbon or QAT. See How to use the VBA Editor for complete instructions to use the VB Editor. See Customize the QAT if you need help customizing the QAT.

If you want to use a macro to open different templates, assign the template path to a variable and pass the variable to the macro, like this:

Dim template As String

Sub OpenTemplate1()
template = "C:\Users\Diane\Templates\template1.oft"
MakeItem
End Sub

Sub OpenTemplate2()
template = "C:\Users\Diane\Templates\email.oft"
MakeItem
End Sub

Private Sub MakeItem()
Set newItem = Application.CreateItemFromTemplate(template)
newItem.Display
Set newItem = Nothing
End Sub

Send message to Contact using a template

This version of the macro will use a template to send a message to the selected contact.

This macro works with the selected contact. You can use it if a contact is open, as long as the contact is also the selected item. If you open a contact, read an email then switch to the already-open contact, you will need to use the GetCurrentItem function on this page: Outlook VBA: Work with Open Item or Selected Item

Sub SendToContact()
Dim strAddress As String
Dim objItem

Set objItem = Application.ActiveExplorer.Selection.Item(1)

 If objItem.Class = olContact Then
     strAddress= objItem.Email1Address & ";"
 End If
     
Dim newItem as Outlook.MailItem
Set newItem = Application.CreateItem("C:\path\template.oft")
newItem.To = strAddress
newItem.Display
End Sub

Open a Template and Add an Attachment

If you want to add an attachment to the message at the same time you open the template, you'll use newItem.Attachments.Add "C:\myfile.doc". Add it to your code after the line that opens the template (DUH!) and before the message is displayed (newItem.Display).

The macro will look something like this:

Sub AddAttachment ()
Dim newItem as Outlook.MailItem
Set newItem = Application.CreateItem("C:\path\template.oft")
newItem.Attachments.Add "C:\myfile.doc"
newItem.Display
End Sub

 

Open a published form

If you want to open a published form, use this code to call the form. You need to be viewing the folder you want the item to be saved in.

Use GetDefaultFolder function to use the default folder for the custom form type. For example, change the Set items line to this the following to create an appointment or meeting in the Calendar folder from any other folder:
Set Items = Session.GetDefaultFolder(olFolderCalendar).Items

Public Sub OpenPublishedForm()
   Dim Items As Outlook.Items
   Dim Item As Object
   Set Items = Application.ActiveExplorer.CurrentFolder.Items
   Set Item = Items.Add("ipm.note.name")
   Item.Display
 End Sub

 

Open a web page

Use this script if you want to open a web page using a button on Outlook's ribbon.

Sub OpenWebpage()
CreateObject("WScript.Shell").Run ("https://www.slipstick.com/")
End Sub

More fun with hyperlinks:
Create a Hyperlink on an Outlook Custom Form
Open All Hyperlinks in an Outlook Email Message

 

Add a button to the ribbon tutorial

This tutorial shows you how to add a button to one of Outlook 2013's ribbon tabs. If you prefer to add them to the Quick Access Toolbar (QAT), the steps are the same but you'll start in File, Options, Quick Access Toolbar. Note: In Outlook 2010 you cannot add buttons to the ribbon but you can add buttons to the QAT.

  1. Select Macros from the Choose commands from menu
  2. Select the macro. Only Public macros that you can run manually will be listed here.
  3. Click Add to add it to the QAT (or ribbon)
  4. To change the icon and display name, click Modify.

After you add a macro the ribbon, you cannot move the macro or change the macro or module name. If you do, you'll need to recreate the macro.

add macros to the qat or ribbon

 

Select a template from File Open dialog

The macro will open the File Explorer dialog to a specific folder for you to choose a template. This macro uses late binding, so you won't need to set a reference to the Word object model to use it.

Sub ShowOpenDialog()
'Display the Open dialog box
Dim wdApp As Object ' Word.Application
Dim dlgOpen As Object ' FileDialog
Dim strFile As String

'Set wdApp = New Word.Application
Set wdApp = CreateObject("Word.Application")
 Dim vrtSelectedItem As Variant
    'Set the dialog box type to Open
    Set dlgOpen = wdApp.FileDialog(msoFileDialogFilePicker) 

'Show only Outlook templates in the specific folder path
    With dlgOpen
         .InitialFileName = "D:\Documents\Slipstick Templates\"
        .Filters.Add "Outlook Template", "*.oft"

  If .Show = -1 Then
      strFile = .SelectedItems(1)
  
    Set newItem = Application.CreateItemFromTemplate(strFile)
      newItem.Display
    Else
    ' user clicked cancel 
    End If

    End With

End Sub

 

Create a Hyperlink button

This works in Outlook 2007 and older versions as well as all Office applications that have the Assign Hyperlink option on customized buttons. You can hyperlink to any file, although programs (*.exe) may be restricted for security reasons.

Assign a hyperlink to a button

You can use any button in the Customize dialog (select a category on the left to see additional buttons). If you want to create a menu button, there is a blank one in the New Menu category.

  1. Right click on the toolbar area.
  2. Choose Customize
  3. From the Commands tab, drag a button (any button) to the Menu bar or a Toolbar
  4. Right click on the button to expand the customize menu
  5. Click Assign Hyperlink then Open and select the file you want to open.

Video Tutorial

In Outlook 2007's main interface and in Outlook 2003 and older, you'll add a button to the toolbar as shown in the following video.

[wpvideo Envs3ce2 w=580]

 

Disable the hyperlink warning

When you open templates or files using a hyperlink button or from Outlook's Shortcut navigation pane, you'll receive an unsafe hyperlink warning. You can disable the warning by editing the registry.

Unsafe file warning

You may also receive the file open or save dialog when using a hyperlink button or shortcut. To disable this dialog when the "Always ask" field is grayed out, run Outlook as administrator. The "always ask" checkbox should be clickable. If not, you'll need to edit the registry for each file type. See Disable "Always ask before opening" dialog for more information.

Open or Save dialog

The solution

Add a registry value to disable the warning dialog.

Open the registry editor and browse to the following registry subkey for
Outlook 2016 / 2019 / 365:
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Security

Outlook 2013:
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Security

Outlook 2010:
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Security

Outlook 2007:
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\Security

Note: If the Security key does not exist in your registry, you'll need to create it too.

Right click on Security key and choose New, DWORD. Type (or paste)

DisableHyperlinkWarning as the Value name then double click on it. Enter 1 as the Value data to disable the warning. Delete the key or use a value of 0 to enable the warning.

Change the registry value

Group policy keys for administrators

Administrators will add the DisableHyperlinkWarning DWORD to the Policy key instead:

Outlook 2016 / 2019 / 365:
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Common\Security

Outlook 2013:
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\15.0\Common\Security

Outlook 2010:
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\14.0\Common\Security

Outlook 2007:
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\Common\Security

Do It For Me

If you don't want to edit the registry yourself, you can download and run the following registry key for your version of Outlook.

Outlook 2016Outlook 2013Outlook 2010
Outlook 2007

How to use the macros on this page

First: You need to have macro security set to the lowest setting, Enable all macros during testing. The macros will not work using the options that disable all macros or unsigned macros. You could choose the option to warn about macros and accept it each time you restart Outlook, however, because it's somewhat hard to sneak macros into Outlook (unlike in Word and Excel), allowing all macros is safe, especially during the testing phase. You can sign the macro when it is finished and change the security to allow signed macros.

To check your macro security in Outlook 2010 and newer, go to File, Options, Trust Center and open Trust Center Settings, and change the Macro Settings. In Outlook 2007 and older, look at Tools, Macro Security.

After you test the macro and see that it works, you can either leave macro security set to low or sign the macro.

Open the VBA Editor by pressing Alt+F11 on your keyboard.

To put the code in a module:

  1. Right click on Project1 and choose Insert > Module
  2. Copy and paste the macro into the new module.

More information as well as screenshots are at How to use the VBA Editor

More Information

Outlook 2010: Open custom form via your own ribbon (vboffice.net)
Opening a Saved Outlook Template (.oft file) in Office 2003 and 2007 Whitepaper by Helen Feddema
How to enable or to disable hyperlink warning messages in 2007 Office programs and in Office 2010 programs (MSKB)
How to Open Outlook Templates and Files using Toolbar Buttons was last modified: May 20th, 2025 by Diane Poremsky

Related Posts:

  • Do you send a lot of messages to one person or group and want to make
    How to create preaddressed messages
  • How to add shortcuts to applications on the Shortcut Bar
  • Using Voting Buttons in Email
  • Disable the Unsafe Hyperlink Warning when Opening Attachments

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Subscribe
Notify of
124 Comments
newest
oldest most voted
Inline Feedbacks
View all comments

Michael
February 9, 2023 9:31 am

MS broke the pin to outlook in Windows 11 do you know of a way to get this feature back, or some kind of reasonable workaround?

0
0
Reply
Phillip
July 24, 2022 10:10 pm

Hi Diane,

I was wondering how I would go about exporting the toolbar and importing to multiple computers. Whenever I try this it shows on the toolbar, just in a different spot

0
0
Reply
Diane Poremsky
Author
Reply to  Phillip
July 26, 2022 12:21 am

File > Options > Customize ribbon - you need to do this with each outlook item you change. Or copy the customUI files - they are at C:\Users\%username%\AppData\Local\Microsoft\Office

0
0
Reply
Yohann
October 12, 2021 3:44 am

Hello Diane, thank you for all these resources. I use FileDialog(msoFileDialogFolderPicker) to open the Excel dialog box in order to select a folder; yet, sometimes the dialog box opens in the background. It is quite boring because the procedure seems locked while it is just due to the dialog box we can't see. Do you know if there is a way to open the dialog box in the foreground please? Thank you. Yohann

0
0
Reply
Diane Poremsky
Author
Reply to  Yohann
October 12, 2021 11:42 am

As far as I know, there is not an option to force it to the front but try adding .show after you open (if you aren't already using it) This would be in addition to the if liner, if using that.

  With dlgOpen
     .InitialFileName = "D:\Documents\Slipstick Templates\"
    .Filters.Add "Outlook Template", "*.oft"

.show

 If .Show = -1 Then

0
0
Reply
Yohann
Reply to  Diane Poremsky
October 13, 2021 3:27 am

Thank you Diane for your reply. You me be interested by this one: excel - FilePicker in Macro opens dialogbox in background - Stack Overflow

0
0
Reply
Ed Nowakowski
May 5, 2021 6:47 pm

I'm trying build a simple macro to open an email template using your code above but I can't ever get it to run properly as it gives me a run-time error message saying it can't open xxx. I've tried this on multiple machines with the same issue. I'm sure I'm missing something.

0
0
Reply
Diane Poremsky
Author
Reply to  Ed Nowakowski
October 12, 2021 11:17 am

Is the path correct?
Is the file stored in a cloud storage folder? (They may or may not open from the cloud - I had to move my templates into a local folder).

1
0
Reply
Bill Mosca
November 23, 2020 11:57 am

Diane - Thanks for a very simple solution. I used to be an Access developer so I appreciate your methods here.

0
0
Reply
Scott
October 22, 2020 11:41 am

This used to work for me but I have recently updated Outlook and it is now saying that I don't have the permission to open my template via the Macor/Button... any suggestions??

0
0
Reply
Diane Poremsky
Author
Reply to  Scott
November 23, 2020 11:59 am

Where is the template stored? Did you just install regular updates or upgrade to a new version of outlook?

0
0
Reply
Mateus
February 10, 2020 2:01 pm

Hello, Diane!

We created a new template with customizable fields and published it in a public folder of our organization (created via Exchange). So now everyone can access it via the "Choose Form" dialog, but, as you said in this post, it's a little bit too much steps for some people.

I've been trying some of those solutions, but I'm having trouble making it all work.

What is your suggestion to make a shortcut to this template and replicate to all of our employees' Outlook?

Thanks in advance!

2
0
Reply
Troy
November 16, 2017 9:59 am

I've looked for this so long - thanks a ton! Now trying to expand a bit to include multiple templates/macros but not following how to add. I'm able to duplicate the code changing the path to the macro I want to use and append it in the VB editor under my project. I'm then able to add that to the ribbon. But when I go to click on the 2nd macro template it doesn't do anything. The first one continues to work however. Suggestions?

Snippet of my VB Code:

Sub MakeItemScheduling()
Set newItem = Application.CreateItemFromTemplate("C:pathto1st.oft")
newItem.Display
Set newItem = Nothing
End Sub
Sub MakeItemProjectCompletion()
Set newItem = Application.CreateItemFromTemplate("C:pathto2nd.oft")
newItem.Display
Set newItem = Nothing
End Sub

0
0
Reply
Diane Poremsky
Author
Reply to  Troy
November 16, 2017 12:11 pm

As long as the path it correct, it should work. Add msgbox "MakeItemProjectCompletion" right before set newitem and see if the dialog box comes up. if so, copy the template path and paste it into windows explorer - does the template open?

0
0
Reply
Troy
Reply to  Diane Poremsky
November 16, 2017 1:52 pm

Hi Diane - well I went back and re-read your original instructions and was able to get it working with the following:

Dim template As String

Sub OpenTemplate1()
template = "C:\Users\Troy\AppData\Roaming\Microsoft\Templates\SchedulingTemplate.oft"
MakeItem
End Sub

Sub OpenTemplate2()
template = "C:\Users\Troy\AppData\Roaming\Microsoft\Templates\ProjectCompletion.oft"
MakeItem
End Sub

Private Sub MakeItem()
Set newItem = Application.CreateItemFromTemplate(template)
newItem.Display
Set newItem = Nothing
End Sub

Thanks for the quick reply and appreciate you sharing these.

I would also add I've taken this a step further to use the self-signed Cert in Office and digitally signing it to the VB project which makes the pop-ups go away as the macros are now trusted. https://www.groovypost.com/howto/howto/office-2010-outlook-self-signed-digital-certificate/

Thanks!!!

1
0
Reply
Diane Poremsky
Author
Reply to  Troy
November 16, 2017 2:56 pm

you don't want to sign the macros until after you are 100% sure its working - each time you edit a macro, you need to remove and re-sign the macro. (My instructions are at Using SelfCert to sign a macro

0
0
Reply

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 30 Issue 31

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Jetpack plugin with Stats module needs to be enabled.
  • Move Deleted Items to Another Folder Automatically
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
  • Google Workspace and Outlook with POP Mail
  • Import EML Files into New Outlook
  • Opening PST files in New Outlook
  • New Outlook: Show To, CC, BCC in Replies
  • Insert Word Document into Email using VBA
  • Delete Empty Folders using PowerShell
  • Warn Before Deleting a Contact
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Move Deleted Items to Another Folder Automatically

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Google Workspace and Outlook with POP Mail

Import EML Files into New Outlook

Opening PST files in New Outlook

New Outlook: Show To, CC, BCC in Replies

Insert Word Document into Email using VBA

Delete Empty Folders using PowerShell

Warn Before Deleting a Contact

Newest Code Samples

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

VBA Basics

How to use the VBA Editor

Work with open item or selected item

Working with All Items in a Folder or Selected Items

VBA and non-default Outlook Folders

Backup and save your Outlook VBA macros

Get text using Left, Right, Mid, Len, InStr

Using Arrays in Outlook macros

Use RegEx to extract message text

Paste clipboard contents

Windows Folder Picker

Custom Forms

Designing Microsoft Outlook Forms

Set a custom form as default

Developer Resources

Developer Resources

Developer Tools

VBOffice.net samples

SlovakTech.com

Outlook MVP David Lee

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2025 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.

:wpds_smile::wpds_grin::wpds_wink::wpds_mrgreen::wpds_neutral::wpds_twisted::wpds_arrow::wpds_shock::wpds_unamused::wpds_cool::wpds_evil::wpds_oops::wpds_razz::wpds_roll::wpds_cry::wpds_eek::wpds_lol::wpds_mad::wpds_sad::wpds_exclamation::wpds_question::wpds_idea::wpds_hmm::wpds_beg::wpds_whew::wpds_chuckle::wpds_silly::wpds_envy::wpds_shutmouth:
wpDiscuz

Sign up for Exchange Messaging Outlook

Our weekly Outlook & Exchange newsletter (bi-weekly during the summer)






Please note: If you subscribed to Exchange Messaging Outlook before August 2019, please re-subscribe.

Never see this message again.

You are going to send email to

Move Comment