View Single Post
  #2  
Old May 14th 10, 06:29 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP][_4_]
external usenet poster
 
Posts: 552
Default How can I add a user created template to the toolbar

Write a little VBA macro and put the macro on the toolbar:

Sub DoIt()
Set msg = Application.CreateItemFromTemplate("C:\myfile.oft" )
msg.Display
End Sub
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54



"drumz" wrote:

I created a custom template that I would like to access from the tool bar
instead of through the menus. Is there a way to do that? I saw a way to do it
with forms using VBEditor but that wouldn't work with a template.

Does anyone know how I can accomplish adding a button to the toolbar that
will open my OFT file?
Thanks!

Ads