Word.ActiveDocument.AttachedTemplate.Saved = True - gives "TypeMismatch" error

P

Paul Moloney

I have an Autoopen macro in a template as follows:

Application.ActiveDocument.AttachedTemplate.Saved = True

The purpose of this is to avoid people opening the doc being prompted
to save the template.

This works fine, except if the user attempts to open the doc through a
link from a web page rather than from Windows Explorer. If this
happens, the following error is given:

Run-time error: '13'

Type mismatch


Does anyone know why?

Thanks,

P.
 
F

Fumei2 via OfficeKB.com

What happens if you do not have Application?

ActiveDocument.AttachedTemplate.Saved = True
 

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