Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Test to see if excel is present
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00771427
Message ID:
00771455
Views:
5
>So, then I would not start with oWord = CreateObject("Word.Application")
>but some other command that gets me right into the already open
>word?
TRY
   oWord = GETOBJECT(,"Word.Application")
CATCH TO loExc
   IF loExc.Number = 1426 && or whatever it actually is
      oWord = CREATEOBJECT("Word.Application")
   ELSE
      THROW loExc
   ENDif
ENDTRY
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Reply
Map
View

Click here to load this message in the networking platform