Changing attached template to normal.dotm

F

fam.hougaard

In word 2003 i had the following VBA code change the attached template to normal.dot

With ActiveDocument
.UpdateStylesOnOpen = False
.AttachedTemplate = "Normal.dot"
End With

I would like to do the same in Word 2010 but to Nomal.dotm in stead.

However i get an error using the VBA code.

I have also tried:

ActiveDocument.AttachedTemplate = Application.NormalTemplate.FullName

and:

With ActiveDocument
.UpdateStylesOnOpen = False
.AttachedTemplate = Application.NormalTemplate.FullName
End With

But nothing works.

My reason for changing the template, is that we have a company lettet based on a template. However we do not want the macros and the attached template in documents based on the template to be sent customers when we email them.

Any ideas ?
 
S

Stefan Blom

Normal.dotm *is* a template; it doesn't have one attached. I'm not sure
what you are trying to do.

Stefan Blom
Microsoft Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top