WD2000: RefreshDocument Method Resets Document's Template to Normal.dot (274282)
The information in this article applies to:
- Microsoft Word 2002
- Microsoft Word 2000
This article was previously published under Q274282 SYMPTOMS
In a Microsoft Word macro, you can call the RefreshDocument method of the HTMLProject object to update a Word document. If the document is attached to a template other than the Normal.dot template, the document is then attached to the Normal.dot template instead.
CAUSE
This problem occurs if the original template is not in the Templates folder.
WORKAROUND
To work around this problem, use one of the following methods:
- Place the template file (.dot) in the Templates folder, which is where Normal.dot is located. To determine the path of the Templates folder, click Options on the Tools menu. On the File Locations tab, click User templates. The path of the Templates folder is listed in the Location list box.
- Re-attach the original template to the document after you call the RefreshDocument method. To use this workaround, you must have another document open that is based on the template. For an example of this workaround, see the "Steps to Reproduce Behavior" section.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. REFERENCESFor additional information about how to insert HMTL into an Office document, click the article number below
to view the article in the Microsoft Knowledge Base:
274326 HOWTO: Add HTML Code to the Clipboard by Using Visual Basic
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbbug kbDHTML kbpending KB274282 |
---|
|