+ Reply to Thread
Results 1 to 2 of 2

VBA to bring up a template

  1. #1
    Forum Contributor
    Join Date
    03-05-2007
    Location
    Falmouth, VA now, Palm Bay, FL for 2 yrs, was Colorado Springs, CO for ten years; Cedark Park, TX; Zeeland, MI; Wilmette, IL; Princeton Junction, NJ; NY, NY
    MS-Off Ver
    365
    Posts
    580

    VBA to bring up a template

    Rather disgusted with the labyrinth that Outlook forces one to go through to get to user templates, I searched and found some code on TechRepublic that was supposed to achieve this, but something just ain't workin' for me here...

    As it was not specified where to place the code I created a module and stuck the following in that:

    Please Login or Register  to view this content.
    where introduction.oft is the name of the saved template. Since I have no background in writing vba for Outlook, I presume that we do not need the ".oft" extension here as the author of the original code said nothing about it in his example and excluded any extensions. I find that strange, but just following the expert.

    So I am here because when I assigned this macro to a group I created, it seems to do absolutely nothing.

    Can someone bring me up to speed with what I need do to make this menu-borne shortcut function properly?

    edit:

    OK, I found that the following actually works:

    Please Login or Register  to view this content.
    but is there anything that I can use to replace hard coding the full path to where my templates are stored? I could not find anything that starts with "olFolder" that said "Templates"!

    Hmmmmmm. I see I was mixing Outlook and Word. That's what I get for staring at my screen all day long. Sorry!
    Of course, IF there is a Word pointer to the templates folder, THAT is what I would like to know about!
    Last edited by brucemc777; 05-12-2016 at 10:52 AM. Reason: Update...

  2. #2
    Forum Contributor
    Join Date
    08-27-2006
    Posts
    136

    Re: VBA to bring up a template

    In the first bit of code you confused templates with forms.

    Please Login or Register  to view this content.
    Open a mailitem from your Introduction template then publish it. https://support.microsoft.com/en-us/kb/290803
    To mark "Solved" go to Thread Tools.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Array Formula Lookup - Bring back Lowest Date + Bring Back Cell Location
    By Matt1998 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-04-2014, 12:08 PM
  2. Template for query that can span multiple pages or sheets of a template if needed
    By anthallen_dps in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-17-2013, 11:52 AM
  3. Replies: 0
    Last Post: 06-24-2013, 11:27 AM
  4. Replies: 3
    Last Post: 05-15-2013, 11:34 PM
  5. Replies: 8
    Last Post: 02-26-2013, 01:00 AM
  6. Replies: 0
    Last Post: 02-28-2012, 11:40 AM
  7. How to populate values in Normal.dot template or any Template file
    By csekhar.apps in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-11-2010, 01:03 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1