General information
Category:
Coding, syntax & commands
Title:
CreateObject () and Word
My app creates a Word OLE object with :
goWord = CREATEOBJECT("word.basic.")
There are a few users who exit Word when they mean to just close a document window. Using the goWord object when Word is not running then causes an OLE error.
My solution for this is simply to repeat the line goWord = CREATEOBJECT("word.basic.") at the beginning of every method that uses calls to goWord. This works becuase Word does not launch another session each time CREATEOBJECT is called. My question is, is there any overhead here that I am not seeing? Any problem with this approach?
Thanks,
Ross
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only