From: Paul Moloney on
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.
From: Fumei2 via OfficeKB.com on
What happens if you do not have Application?

ActiveDocument.AttachedTemplate.Saved = True

Paul Moloney wrote:
>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.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/201002/1

From: Paul Moloney on
On Feb 3, 7:18 pm, "Fumei2 via OfficeKB.com" <u53619(a)uwe> wrote:
> What happens if you do not haveApplication?

Same thing. Also the same if I prefix it with "Word." instead...

P.