
A scary tale: The Objects that wouldn't DIE!!!
Hi Alan,
You killed the variables that point to the apps but you didn't kill the
apps.
Try:
WordObject.Quit
OutlookObject.Quit
Then go ahead and kill the variables.
--
Bill Coan
Templates, wizards, add-ins, and macros for Word
For more information, visit: www.wordsite.com
Quote:
Quote:
> I have a VB6 app that consistantly needs to automate Microsoft Word and
> Microsoft Outlook. I've been creating the objects in the following
manner:
> Set WordObject = CreateObject("Word.Application)
> Set OutlookObject = CreateObject("Outlook.Application")
> After my VB6 app automates these apps, it (supposedly) destroys the
objects.
> This is done in the following manner:
> Set WordObject = Nothing
> Set OutlookObject = Nothing
> ...but guess what? After the above runs, if I hold down my
> Control/Alt/Delete buttons, "Winword" and "Outlook" still appear in the
> list!
> Now wait a minute! Didn't I kill these apps by setting them to NOTHING???
> If this were happening to you, where would you begin to look in order to
try
> to solve the problem? Thanks in advance.