Hi
I created a template and saved it as a dot file. Nothing complex - few macros in it plus one available to the user as a toolbar and a menu option.
All looks and works great when I am editing the .DOT file. But, when try to create a new document using the template (double-click), it open the document, get the macro security message (I say enable to it), it creates the new but the template is not attached to it!!!!! I don't understand that. I have other templates which are fine and attached to the document but not this one. No macros in it of course.
Perhaps someone can shed some light in to this.
EDIT: In case Normal.dot was corrupted somehow, I deleted it. I still get the same result.
Thanks.
Robie.
Template not attached to document
-
- Administrator
- Posts: 78625
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Template not attached to document
Are you sure that it is a real template and not a document renamed to a template?
Last edited by HansV on 27 Mar 2011, 12:51, edited 1 time in total.
Reason: to correct typo
Reason: to correct typo
Best wishes,
Hans
Hans
-
- StarLounger
- Posts: 50
- Joined: 04 Nov 2010, 01:09
- Location: Maryland, USA
Re: Template not attached to document
What version of Word are you using? When you create the new file, is it names Document1?
Pam
Pam
-
- 5StarLounger
- Posts: 656
- Joined: 18 Feb 2010, 14:26
Re: Template not attached to document
What do mean - don't understand? I created the document, added macros and saved as template (.DOT) as I normally do when creating templates.HansV wrote:Are you sure that it is a rea; template and not a document renamed to a template?
When I open it as a DOT file then I get macros and the toolbar button displayed. When opened as a document (i.e. create new document) then it displays the macro security message (enable macros, disable macros, More info). I click enable macro and it creates a new document - Document1
-
- 5StarLounger
- Posts: 656
- Joined: 18 Feb 2010, 14:26
Re: Template not attached to document
Hi Pam - nice to hear from you. Word 2003 and hopefully also 2007. Yes, it names the 'new' document as Document1 - but no macros :-(.PamCaswell wrote:What version of Word are you using? When you create the new file, is it names Document1?
Pam
-
- 5StarLounger
- Posts: 656
- Joined: 18 Feb 2010, 14:26
Re: Template not attached to document
When I open it as a DOT file then I get macros and the toolbar button displayed.
When opened as a document - double-click PST Test.dot, (i.e. create new document) then it displays the macro security message (enable macros, disable macros, More info). I click enable macro and it creates a new document - Document1 but no macro & no 'PST Test.dot' attached.
You do not have the required permissions to view the files attached to this post.
-
- Administrator
- Posts: 78625
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Template not attached to document
Could you create a copy of the template, remove all content and all macros and attach the copy to a reply?
Best wishes,
Hans
Hans
-
- StarLounger
- Posts: 50
- Joined: 04 Nov 2010, 01:09
- Location: Maryland, USA
Re: Template not attached to document
Hi, Robie,
Try running open and repair on your template. If Word finds something to fix, create another new document to see if your problem is gone. If Word finds nothing to fix in the template and if you are sure that the problem is with this template only, redo the template from scratch. BUT...
I notice that the macros list is empty, which means you have no macros in normal.dot and no add-ins with macros loaded. If that is not your situation, you may need to repair (not reinstall) Office. Let us know how things work out.
Pam
Try running open and repair on your template. If Word finds something to fix, create another new document to see if your problem is gone. If Word finds nothing to fix in the template and if you are sure that the problem is with this template only, redo the template from scratch. BUT...
I notice that the macros list is empty, which means you have no macros in normal.dot and no add-ins with macros loaded. If that is not your situation, you may need to repair (not reinstall) Office. Let us know how things work out.
Pam
-
- 5StarLounger
- Posts: 656
- Joined: 18 Feb 2010, 14:26
Re: Template not attached to document
Here is the template. BTW: I didn't mention before but at work I am running Windows7 and here at home Windows XP - same result both OS.HansV wrote:Could you create a copy of the template, remove all content and all macros and attach the copy to a reply?
You do not have the required permissions to view the files attached to this post.
-
- Administrator
- Posts: 78625
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Template not attached to document
As I suspected, your templates are not real templates, but documents disguised as templates. Why/how? I have no idea.
Try the versions in the attached zip file:
Try the versions in the attached zip file:
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans
Hans
-
- 5StarLounger
- Posts: 656
- Joined: 18 Feb 2010, 14:26
Re: Template not attached to document
Thanks Hans. I don't really understand between real templates and docs maquerading as templates. BTW: What did you do to fix these 'non-templates'?HansV wrote:As I suspected, your templates are not real templates, but documents disguised as templates. Why/how? I have no idea.
Try the versions in the attached zip file:
-
- Administrator
- Posts: 78625
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Template not attached to document
I opened the template, then activated the Save As dialog. Word offered to save the file as a Word 97-2003 document as default:
This shows that although the extension is .dot, it is not really a template but a document.
I then selected Word 97-2003 Template (*.dot) as file type, added a 2 after the file name and saved.
This shows that although the extension is .dot, it is not really a template but a document.
I then selected Word 97-2003 Template (*.dot) as file type, added a 2 after the file name and saved.
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans
Hans
-
- StarLounger
- Posts: 50
- Joined: 04 Nov 2010, 01:09
- Location: Maryland, USA
Re: Template not attached to document
Wow. You have mentioned this before, Hans, but I always thought it could only happen if someone just changed the extension on the file name. I often create templates from old document and have not seen this problem before, but now I'll now how to fix it.
Thanks,
Pam
Thanks,
Pam