Word 2010 missing template timeout

Posted on 2012-09-19
Last Modified: 2014-04-30
Users opening Word documents in Word 2010 in our AD environment are having to wait a minute or so while Word looks for the original template, which is timing out as the server is no longer there. Although it's possible to circumvent this by opening the file from within Word and then pressing Escape to cancel loading of the template, this isn't as convenient as double clicking the file in Windows Explorer. Is it possible to change the timeout using group policy so the waiting time is lowered to, say, 5 seconds, or the behaviour if the template file can't be opened initially?
Question by:goodingip
    LVL 76

    Assisted Solution

    I think that it will be faster if a server with the old name is re-instated. It doesn't have to hold the template or even the folder. In the longer term, consider changing the attached template.

    This macro will recurse into a folder structure looking for documents with templates on the old server and then changing the location:
    Option Explicit
    Sub ChangeTemplatesServer()
      FindFiles "C:\DocumentFolders", "*.doc*"
    End Sub
    Sub FindFiles(strFolder As String, strFilePattern As String)
        Dim strFileName As String
        Dim strFolders() As String
        Dim iFolderCount As Integer
        Dim i As Integer
        Dim doc As Document
        'collect child folders
        strFileName = Dir$(strFolder & "\", vbDirectory)
        Do Until strFileName = ""
            If (GetAttr(strFolder & "\" & strFileName) And vbDirectory) = vbDirectory Then
                If Left$(strFileName, 1) <> "." Then
                    ReDim Preserve strFolders(iFolderCount)
                    strFolders(iFolderCount) = strFolder & "\" & strFileName
                    iFolderCount = iFolderCount + 1
                End If
            End If
            strFileName = Dir$()
        'process files in current folder
        strFileName = Dir$(strFolder & "\" & strFilePattern)
        Do Until strFileName = ""
                Set doc = Documents.Open(strFolder & "\" & strFileName)
                If doc.AttachedTemplate.Path = "\\Oldserver\templates\" Then
                    doc.AttachedTemplate = "\\NewServer\templates\" & doc.AttachedTemplate.Name
                    doc.Close wdSaveChanges
                    doc.Close wdDoNotSaveChanges
                End If
            strFileName = Dir$()
        'look through child folders
        For i = 0 To iFolderCount - 1
            FindFiles strFolders(i), strFilePattern
        Next i
    End Sub

    Open in new window


    Author Comment

    That's really helpful, thanks. The server migration is one of those things that perhaps I'll work out how to do in a different way next time in order to retain the server name. It's actually a DFS root that I've moved to a new server as we decommissioned the old one. I'll try reinstating the server without the shares to see if that speeds things up for now.

    The macro doesn't seem to work for me. I created a suitable Word macro and ran it with a test set, and it looks as though the doc.AttachedTemplate.Path has become the default template for my copy of Word by the time this is executed, so it's not showing the one embedded in the document, so instead of being "\\deadserver\resources\templates\" it's showing "C:\Users\<myusername>\AppData\Roaming\Microsoft\Templates". However, if the information is available that would be a great way to resolve the problem - as I have nearly a million documents to go through.

    Accepted Solution

    Rather than use a macro you could always change the timeout to a set number of seconds:
    Just change the version of Office using 14, 12 etc


    details of the subkey are in the Microsoft kb

    Author Closing Comment

    I discovered the macro option as set would only work under very specific circumstances (Office 2003 required if I recall correctly, which I no longer have on any of our systems), though it's very helpful to see how to manipulate the filing system like this. So I have implemented the timeout as despite having removed the servers listed in the template path from the domain Word still occasionally goes looking for them.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    A Knowledge Base That Stays Up-to-Date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Like many others, we try and discourage users from printing documents unnecessarily and instead send or share them electronically. However, this doesn't always work and documents are still printed. With this simple solution, if the user tries to …
    Introduction This tutorial provides instructions on how to properly format your Word document using the inbuilt tools provided. The benefits of using these tools means your documents are more accessible and easily portable to other applications an…
    This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
    In a previous video Micro Tutorial here at Experts Exchange (, I explained how to get a free, one-month trial of Office …

    759 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