Quote Originally Posted by Killian
I see.

Yes, you're quite right. A user launching PowerPoint will, in fact, activate your instance. I don't see there's anyway round that and since there's no new process thread for the user's action I don't see a way of detecting if it's happened.

I guess all you can do is check the Presentations collection having tidied up your code driven stuff to see if there's anything left...?
It has ben suggested that if, instead of killing the powerpoint instance, if
i just set it to Nothing, the instance of powerpoint will go away if there
are no other powerpoint sessions.

I'll try this later.

I would feel comfortable relying on this only if I saw documentation of this
behavior, and for powerpoint 97, 2000, 2002 and 2003.

Not sure that behavior would work automating via VB .NET, but I have no plans to use the code in .NET.

The last resort would be to lock the desktop momentarily. If the presentation count is 1, th kill the critter, otherwise let it live. This ASSuMEs that there is a different instance of powerpoint on each desktop on a multi-user system. Otherwise, kablooey!