
GetObject() crashes when loading a word doc containing an ActiveX control
The problem was caused by the security settings in Word2000. It was set to
high, which means that unsigned macros are automatically disabled. That was
the case when copying one file containing an ActiveX control from another
machine....
In that case, Word crashes without any message.
The security settings should be set to medium (warning messages will be
prompted) or low.
This problem does not appear with Word97 because macros are either enabled
or disabled.
Fabienne
Quote:
>Hello,
>I use Word97/2000 and VBA macros.
>I create a word document containing an ActiveX control in it and save it
as
>"layout.doc" for example purpose. I have one template file in word (.dot)
>that loads this layout document. The VBA macro of the template calls
>GetObject("layout.doc").
> The problem is the following:
>when I create the layout file on one machine running Word97 and I copy this
>file on another machine running Word2000+InternetExplorer5.5+ActiveDesktop
>(seems correlated) and try to load it with the template file, Word crashes
>on the call to GetObject().
>On other machines, the file transfer works fine.
>Would you have any idea of what causes this bug?
>Thanks a lot
>Fabienne Lathuiliere