I'm developing a word macro that works with te activedocument and call an
external object if the corresponding product is onstalled on the computer (It
is an ActiveX EXE.
I have tried
if (the product is installed and running..) then
Dim xxx as object
set xxx = new xxxx.yyy (Shared Class)
else
(alternative code)
endif
It works proproperly when the external product is installed in both
scenarios (Installed and running or installed but not running) and do the
corresponding actions in each case, but it crashes if the product is not
installed.
Anyone knows how can I sort it out
Jezebel - 07 Aug 2005 04:19 GMT
You should be using set xxx = CreateObject("className")
eg, set xxx = CreateObject("Excel.Application")
> I'm developing a word macro that works with te activedocument and call an
> external object if the corresponding product is onstalled on the computer
[quoted text clipped - 15 lines]
>
> Anyone knows how can I sort it out