Conditional external calls

T

technetrix

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
 
J

Jezebel

You should be using set xxx = CreateObject("className")

eg, set xxx = CreateObject("Excel.Application")
 
Top