I have upgraded an old windows 2000 PC to a newer PC with Windows XP in a small business office that I provide support for. The PC acts as a file server for 4 other PCs in the office running Office 2003 under Windows XP. There are a lot of custom templates used to generate most documents. Normal.dot is hardly used.
Since installing the new server, there is a noticible pause as each document is opened. watching closely in the lower left corner of the Word window, I see that Word is searching for the template at the old server location.
Is there any way to configure something that tells the opening documents to look for the template at the new server location?
When I transfer a file to my office computer with Office 2010(another physical location), I notice a similar phenomenon. The document, before opening, is looking for the original template that it was based upon.
Thank you for some help
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
doc looks for template at old location
Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » doc looks for template at old location
- This topic has 14 replies, 7 voices, and was last updated 11 years, 8 months ago.
AuthorTopicMacdonellTo
AskWoody LoungerJune 18, 2012 at 9:46 pm #483862Viewing 4 reply threadsAuthorReplies-
Andrew Lockton
AskWoody_MVP -
MacdonellTo
AskWoody LoungerJune 20, 2012 at 9:56 pm #1337271All of the custom templates are stored in folders on the server whose location is specified by the workgroup template location found under file locations. The normal.dot template is never used unless someone is lazy. I do not use the user templates folder location.
I configured the new server computer with the same folder name layout as the original PC had. When I turned the new server online, I merely changed the machine network name of the mapped network drive and Word was directed to the new server.
I discovered that when I turned the old server back on, the searching messages did not appear in the Word window. I cannot leave the original server on as it is going to fail soon.
-
Charles Kenyon
AskWoody LoungerJune 19, 2012 at 5:25 am #1337064When I am sending a document based on a template other than normal I will often attach it to the normal template prior to sending. I always keep the option to update styles from the template turned off. I recorded a macro to do this.
If you have staff in need of a project, you could assign them the task of updating your old documents files.
If you are using old documents as source material to create new documents instead of templates, this is one of the prices you eventually pay.
-
WSStylus
AskWoody LoungerJune 19, 2012 at 6:21 am #1337067I faced this problem some years ago when the the template location was arbitrarily shut down by management. I had to research and cobble together a complex structure to handle this. It involves an event handler that is started whenever Word opens. One of several things it does is to check the name of the template that the document was originally based on. It then remaps the filepath to that template in its new location. I worked on XP and Office 2003.
A note: in my new job, where we have Win 7 and Office 2012, I am discovering that this event handler (which also does other things) CAN read the name of the original template with pre2007 Word files but can NOT read this info with Word files created with Word 2007 or 2012. This even though the information is there in the XML metadata! (I have a thread about that over in the VBA forum).
In more detail: an autoexec creates the event handler. The event handler determines the name & filepath of the original template and if this is not the “current template” then calls a routine with a long list of CASE tests, each one of which is a template name. For each Case, the file gets remapped to the new workgroup template location.
Is this enough info for you to understand the structure?
-
MacdonellTo
AskWoody LoungerJune 20, 2012 at 10:12 pm #1337274to Stylus:
Thank you for the insights. I believe that you are suggesting the solution means writing a VBA macro.
I started using Word 2000 and prided myself by keeping up with reading everything I could find about Word. At that time and since I have been preaching the benefits of Templates and Styles. I cannot recall seeing any references to this Word hiccup though but for the last few years I have shifted my focus to other applications. I guess that is why I have missed this one.
Could you provide a link to your thread in the VBA forum.
Thanks again
-
WSStylus
AskWoody LoungerJune 21, 2012 at 4:14 am #1337286I don’t have that many posts – a quick search will find you the thread. However, I didn’t go into any detail so there’s not much point in reading it.
My current global template runs lots and lots of macros, partly because I built it for Word 2007 which offered no way of customizing the ribbon. If you have little experiences with VBA then my solution may be a bit much.
I recall years ago reading someone describe how they had run a macro that plowed through all the files in a collection and changed the workgroup template filepath in all of them. There may have been a macro posted, so you could Google for it. The advantage for you would be that it would be a one-time operation that would hopefully solve your problem without ongoing macro functions. (The reason I didn’t use that approach when I faced the changed-location scenario was that the affected files were spread all over the place, including users’ individual drives. A real mess.)
As for “this” Word hiccup… I doubt that any one person knows all the Word gochas!
By the way, when the old server goes to the eternal cloud in the sky, can you rename the new server with the old server’s name? You could replicate the entire filepath of the Workgroup Templates location that is stored in each Word file, and that might solve your problem.
WSBigMac56
AskWoody LoungerJune 26, 2012 at 5:36 am #1337876I’ve had the same problem and found there are a couple of ways to deal with it.
Easiest way is to do as Stylus suggests – make sure the new server and path name’s are identical to the old one.
The second is to remove the “Document Template” name from the “Templates and Add-ins” dialog box. In older versions of windows this was found under “Tools, Options, Templates and Add-ins?” (sorry, I’m guessing the last part). In 2007 and 2010 it’s under “Developer, Add-Ins”. (See attached)
Open the template, and delete the info that’s in blue next to Attach… (it will be highlighted) then resave it. I set up an autonew macro to do this automatically.
-
WSStylus
AskWoody Lounger -
WSBigMac56
AskWoody LoungerJune 27, 2012 at 2:26 pm #1337997Hi Stylus,
Yes it does replace the path and template name with normal, but that’s always local, so it solves the problem that Macdonell had of it taking a minute to open while it searched for the old path/template.
As long as there’s no reason to stay attached to the original template it solves the problem.
Our office has hundreds of templates, so the best solution for us was to keep the same server and path name, as we did last year. Unfortunately we didn’t do this when we upgraded the server in 2002, so there were a few older templates popping up that slowed things down, hence the 2nd solution.
-
WSStylus
AskWoody LoungerJune 28, 2012 at 3:32 am #1338029BigMac56
Macdonell didn’t tell us why he wanted to remap to the original templates. There could be content that Macdonell’s docs depend on. I found that templates from Word 2003 make styles available to the doc, yet if the pathway to the template is cut, then the doc only has those styles that have already been used in the doc. The remaining styles are out of reach. There is other content like that, for example auto text.
That is the reason I had to get knee-deep in macros when I faced a similar problem.
-
WSBigMac56
AskWoody LoungerJune 28, 2012 at 8:39 am #1338071You’re right Stylus,
Our templates were fairly simple, no macro’s to worry about. The employee’s didn’t want to re-enter the customer information, so they just opened an old document, made a couple of changes and resaved it under a new name. This caused enough headaches when they forgot to change the name and overwrote the old document.
Thanks for the clarification. 🙂
-
-
-
WSjhorwitz
AskWoody LoungerOctober 3, 2013 at 10:57 am #1415064The second is to remove the “Document Template” name from the “Templates and Add-ins” dialog box. In older versions of windows this was found under “Tools, Options, Templates and Add-ins?”
A BIG THANK YOU! I had a totally different problem, but I think this may have finally fixed it.
Running Office 2000 under Windows Vista: Excel crashes usually when opening certain files; finally ran the ORK toolkit to fix it; that problem seemed to have been fixed, but the fix removed custom toolbars, menus, styles, etc., from both Excel and Word. Played heck trying to recover everything. Final problem was issues with normal.dot.
Your post caused me to look at Templates and Add-Ins and, guess what, there were two normal.dot files loaded: The one I had been “fixing”, which was under “User” in the WordStartup folder PLUS a second one I hadn’t known about under “Program Files” in the OfficeStartup folder!
I unchecked that one’s box in Word; closed Word; went to the OfficeStartup folder; renamed that one from “normal.dot” to “normal–read only.dot” and made it read-only; and created a subfolder there “Removed” and moved it down a level into the new subfolder (hiding it without losing it!).
It doesn’t show up in Word at all now so, fingers crossed! :rolleyes:
THANKS!!
-
Charles Kenyon
AskWoody LoungerOctober 3, 2013 at 12:09 pm #1415087A BIG THANK YOU! I had a totally different problem, but I think this may have finally fixed it.
Running Office 2000 under Windows Vista: Excel crashes usually when opening certain files; finally ran the ORK toolkit to fix it; that problem seemed to have been fixed, but the fix removed custom toolbars, menus, styles, etc., from both Excel and Word. Played heck trying to recover everything. Final problem was issues with normal.dot.
Your post caused me to look at Templates and Add-Ins and, guess what, there were two normal.dot files loaded: The one I had been “fixing”, which was under “User” in the WordStartup folder PLUS a second one I hadn’t known about under “Program Files” in the OfficeStartup folder!
I unchecked that one’s box in Word; closed Word; went to the OfficeStartup folder; renamed that one from “normal.dot” to “normal–read only.dot” and made it read-only; and created a subfolder there “Removed” and moved it down a level into the new subfolder (hiding it without losing it!).
It doesn’t show up in Word at all now so, fingers crossed! :rolleyes:
THANKS!!
There should be NO file named normal.dot (or normal.dotm) in any Word Startup Folder. This is a personal file, one for each user, in the user templates folder. The Startup Folder is for Add-Ins, not for the normal template.
macropod
AskWoody_MVPOctober 3, 2013 at 6:05 pm #1415150I’m sure I’ve posted the following before, but I can’t find it right now:
When templates other than Word’s Normal template are used to create a document, the template’s path & name are stored with the document. If that path is a network path, a change to the server name will break the link. The result can be significant delays in opening the documents on the new server. See: http://support.microsoft.com/?kbid=830561. The same effect occurs when the file is opened on a computer attached to a different network. The following macro can be used to update the template paths or, if a new template path can’t be found, to point it to Word’s Normal template. Code is included to restore the original date/time stamps of the updated files.
In the code, simply replace however much of the old & new template paths differ in the variables ‘OldServer, and ‘NewServer’.Code:Option Explicit ' Dim FSO As Object 'a FileSystemObject Dim oFolder As Object 'the folder object Dim oSubFolder As Object 'the subfolders collection Dim oFiles As Object 'the files object Dim i As Long, j As Long ' Sub Main() ' Minimise screen flickering Application.ScreenUpdating = False Dim StrFolder As String ' Browse for the starting folder StrFolder = GetTopFolder If StrFolder = "" Then Exit Sub i = 0: j = 0 ' Search the top-level folder Call GetFolder(StrFolder & "") ' Search the subfolders for more files Call SearchSubFolders(StrFolder) ' Return control of status bar to Word Application.StatusBar = "" ' Restore screen updating Application.ScreenUpdating = True MsgBox i & " of " & j & " files updated.", vbOKOnly End Sub ' Function GetTopFolder() As String GetTopFolder = "" Set oFolder = CreateObject("Shell.Application").BrowseForFolder(0, "Choose a folder", 0) If (Not oFolder Is Nothing) Then GetTopFolder = oFolder.Items.Item.Path Set oFolder = Nothing End Function ' Sub SearchSubFolders(strStartPath As String) If FSO Is Nothing Then Set FSO = CreateObject("Scripting.FileSystemObject") Set oFolder = FSO.GetFolder(strStartPath) Set oSubFolder = oFolder.subfolders For Each oFolder In oSubFolder Set oFiles = oFolder.Files ' Search the current folder Call GetFolder(oFolder.Path & "") ' Call ourself to see if there are subfolders below Call SearchSubFolders(oFolder.Path) Next Set FSO = Nothing End Sub ' Sub GetFolder(StrFolder As String) Dim strFile As String strFile = Dir(StrFolder & "*.doc") ' Process the files in the folder While strFile "" ' Update the status bar is just to let us know where we are Application.StatusBar = StrFolder & strFile Call UpdateTemplateRefs(StrFolder & strFile) strFile = Dir() Wend End Sub ' Sub UpdateTemplateRefs(strDoc As String) ' This sub updates the template paths for files after a server ' change. Simply insert however much of the lower end of the ' server paths differ as the OldServer and NewServer variables. Dim OldServer As String, NewServer As String, strPath As String Dim oItem As Object, StrDtTm As String OldServer = "\TSBVOL1": NewServer = "\TSLSERVERFiles" ' Store the file's current Date/Time stamp. If FSO Is Nothing Then Set FSO = CreateObject("Scripting.FileSystemObject") Set oItem = FSO.GetFile(strDoc) StrDtTm = oItem.DateLastModified ' Open the document Documents.Open strDoc, AddToRecentFiles:=False, ReadOnly:=False, Format:=wdOpenFormatAuto With ActiveDocument If .ProtectionType = wdNoProtection Then ' Update the template path strPath = Dialogs(wdDialogToolsTemplates).Template If LCase(Left(strPath, Len(OldServer))) = LCase(OldServer) Then ' Update the file counter for changed files i = i + 1 ' Get the new template path & name strPath = NewServer & Mid(strPath, Len(OldServer) + 1) ' Check whether the template exists If Dir(strPath) "" Then ' If found, update the path .AttachedTemplate = NewServer & Mid(strPath, Len(OldServer) + 1) Else ' If not found, reset the template to 'Normal' .AttachedTemplate = "" ' Output an error report in the document from which the macro is run. ThisDocument.Range.InsertAfter vbCr & "Template: " & strPath & " not found for " & strDoc End If End If Else ' Output a 'protected' file report in the document from which the macro is run. ThisDocument.Range.InsertAfter vbCr & strDoc & " protected. Not updated." End If .Close SaveChanges:=True End With ' Update the main file counter j = j + 1 ' Let Word do its housekeeping DoEvents ' Reset the file's Date/Time stamp. Set oItem = FSO.GetFile(strDoc) If oItem.DateLastModified StrDtTm Then oItem.DateLastModified = StrDtTm Set oItem = Nothing End Sub
You can determine how much of the old & new template paths differ, for the purposes of the ‘OldServer, and ‘NewServer’ variables with code like the following, which you can run on a document created on the old server and another created on the new server, both referencing the same template.
Code:Sub GetTemplateRef() With ActiveDocument MsgBox Dialogs(wdDialogToolsTemplates).Template End With End Sub
A non-macro workaround that’s fine for a few files is to open them on a stand-alone PC and delete the template references. Opening them on a stand-alone PC obviates the start-up delay you’ll get on a networked PC.
Cheers,
Paul Edstein
[Fmr MS MVP - Word]Viewing 4 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Windows 11 Insider Preview build 26200.5661 released to DEV
by
joep517
4 hours, 40 minutes ago -
Windows 11 Insider Preview build 26120.4452 (24H2) released to BETA
by
joep517
4 hours, 42 minutes ago -
Hello Windows…My Problem is Windows Hello…
by
rdleib
5 hours, 57 minutes ago -
New Canon Printer Wants Data Sent
by
Win7and10
6 hours, 15 minutes ago -
I set up passkeys for my Microsoft account
by
Lance Whitney
3 hours, 18 minutes ago -
AI is for everyone
by
Peter Deegan
5 hours, 48 minutes ago -
Terabyte update 2025
by
Will Fastie
1 hour ago -
Migrating from Windows 10 to Windows 11
by
Susan Bradley
52 minutes ago -
Lost sound after the upgrade to 24H2?
by
Susan Bradley
1 day, 5 hours ago -
How to move 10GB of data in C:\ProgramData\Package Cache ?
by
Alex5723
2 hours, 30 minutes ago -
Plugged in 24-7
by
CWBillow
15 hours ago -
Netflix, Apple, BofA websites hijacked with fake help-desk numbers
by
Nibbled To Death By Ducks
1 day, 18 hours ago -
Have Copilot there but not taking over the screen in Word
by
CWBillow
1 day, 15 hours ago -
Windows 11 blocks Chrome 137.0.7151.68, 137.0.7151.69
by
Alex5723
3 days, 9 hours ago -
Are Macs immune?
by
Susan Bradley
51 minutes ago -
HP Envy and the Function keys
by
CWBillow
2 days, 17 hours ago -
Microsoft : Removal of unwanted drivers from Windows Update
by
Alex5723
10 hours, 20 minutes ago -
MacOS 26 beta 1 dropped support for Firewire 400/800
by
Alex5723
3 days, 20 hours ago -
Unable to update to version 22h2
by
04om
1 day, 5 hours ago -
Windows 11 Insider Preview Build 26100.4482 (24H2) released to Release Preview
by
joep517
4 days, 4 hours ago -
Windows 11 Insider Preview build 27881 released to Canary
by
joep517
4 days, 4 hours ago -
Very Quarrelsome Taskbar!
by
CWBillow
3 days, 14 hours ago -
Move OneNote Notebook OFF OneDrive and make it local
by
CWBillow
4 days, 17 hours ago -
Microsoft 365 to block file access via legacy auth protocols by default
by
Alex5723
4 days, 6 hours ago -
Is your battery draining?
by
Susan Bradley
11 hours, 59 minutes ago -
The 16-billion-record data breach that no one’s ever heard of
by
Alex5723
1 day, 5 hours ago -
Weasel Words Rule Too Many Data Breach Notifications
by
Nibbled To Death By Ducks
4 days, 21 hours ago -
Windows Command Prompt and Powershell will not open as Administrator
by
Gordski
23 hours, 28 minutes ago -
Intel Management Engine (Intel ME) Security Issue
by
PL1
4 days, 5 hours ago -
Old Geek Forced to Update. Buy a Win 11 PC? Yikes! How do I cope?
by
RonE22
3 days, 22 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.