Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open outlook .oft Template

Status
Not open for further replies.

Sorwen

Technical User
Nov 30, 2002
1,641
US
I used to have some really simple code I created to open an .oft template from a macro in Outlook. I made this several years ago and I forgot to grab the code before I had everything on my computer reinstalled. Of course it is the one bit of code I never printed out a copy for. Can anyone help me with this?

-I hate Microsoft!
-Forever and always forward.
 
NM I seemed to have finally found it.

Code:
 Set myOlApp = CreateObject("Outlook.Application")
    Set myItem = myOlApp.CreateItemFromTemplate(TemplateDir & "vip.oft")
    myItem.Display
Were TemplateDir is the location of the file (C:\Documents and Settings\.....)

-I hate Microsoft!
-Forever and always forward.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top