Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2005

Tip: Looking for answers? Try searching our database.

Conditional external calls

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
technetrix - 06 Aug 2005 19:48 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.