Solved

Where is the path to the template folder stored?

Posted on 2014-04-28
8
306 Views
Last Modified: 2014-04-29
I would like to find the path to the winword templates folder.  I guess it is in the registry but I couldn't find it with a quick search so maybe I am guessing incorrectly.

Where is this path stored?
or
How can I obtain the complete path from other information?


ps.  I don't want to know how to select a template in word - this is for another program (not word) that needs to locate the template folder.
0
Comment
Question by:AndyAinscow
  • 3
  • 3
  • 2
8 Comments
 
LVL 26

Expert Comment

by:MacroShadow
ID: 40027121
C:\Users\%UserProfile%\AppData\Roaming\Microsoft\Templates
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 40027125
It is a Word option. Word Options> Advanced> File Locations…> User Templates

Word Options> Advanced> File Locations…> Workgroup Templates is the location for shared templates (The Normal template should not be shared)
0
 
LVL 26

Expert Comment

by:MacroShadow
ID: 40027126
Here you will find four quick methods.
0
 
LVL 44

Author Comment

by:AndyAinscow
ID: 40027199
Thanks.

@MacroShadow
C:\Users\%UserProfile%\AppData\Roaming\Microsoft\Templates
That would still leave me to find the value of %UserProfile% - and would it ALWAYS be that I ask myself?  (Not all versions of Windows are in English).

@GrahamSkan
Word Options> Advanced> File Locations…> User Templates
a small but very important excerpt from my question
this is for another program (not word) that needs to locate the template folder.
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 26

Expert Comment

by:MacroShadow
ID: 40027205
%UserProfile% is a system variable, it should return the correct location regardless of the system language.
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 125 total points
ID: 40027221
In VBA you can use
strPath = Application.Options.DefaultFilePath(wdTempFilePath)

Open in new window

0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 40027479
Just to note, that because it is an option, it can be changed (as I have done on my system), so it is not necessarily in the default default location.
0
 
LVL 44

Author Closing Comment

by:AndyAinscow
ID: 40029568
Thanks, that is close enough to achieve what I want.

wdTempFilePath - hmm, I think you meant wdWorkgroupTemplatesPath.

wdUserTemplatesPath is possibly more useful - the local templates are stored there.  The workgroup path will only return something if there is a path defined.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
This article describes how to use the Send to Mail Recipient command. The instructions apply generally to Office 2007 and later versions, but Microsoft® Word 2013 was used for the specific steps and figures.  What is Send to Mail Recipient? Send…
This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now