A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Button To Open Template - Outlook 2007



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 26th 08, 10:03 PM posted to microsoft.public.outlook.program_vba
garfong
external usenet poster
 
Posts: 2
Default Button To Open Template - Outlook 2007

Wow! You're good!

That worked like a charm. Thanks a million!

"Sue Mosher [MVP-Outlook]" wrote:

Write a macro that calls the Application.CreateItemFromTemplate method:

Sub MakeItem()
Set newItem = Application.CreateItemFromTemplate("c:\your path\open test.oft")
newItem.Display
Set newItem = Nothing
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


"garfong" wrote in message ...
I need to create a button on the toolbar that will open a template stored in
the office\templates directory. I tried creating a button that hyperlinked to
the template but Outlook has decided such a move is dangerous and once the
user gets past all the warnings, the template comes up blank because outlook
has blocked all the functionality.

Any ideas how I can use VBA to get past the annoying prompts and get the
button to open the template directly? In effect, the button would recreate
the steps of going to File New Choose Form Look In: User Templates In
File System Open test.otf


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
In Office Outlook REMINDERS can I reset default button to OPEN ITE Angel Dupree Outlook - Installation 1 March 7th 08 09:22 PM
Outlook 2003 - Button to add body text to an OPEN email Patrick Pirtle Outlook and VBA 5 September 14th 07 03:15 PM
OFT Files won't open correctly - email instead of template Tmuldoon Outlook - Using Forms 1 April 23rd 07 09:48 PM
How do i open a word template from within a contact in Outlook 200 Mark Outlook - Using Contacts 3 July 28th 06 08:48 PM
Outlook 2000 - Button to run Macro then open Database David C Outlook and VBA 1 January 25th 06 03:44 PM


All times are GMT +1. The time now is 03:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.