YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Event that Fires When ProcessBook Closes? Options · View
jhcoxx
#1 Posted : Tuesday, October 04, 2011 4:03:05 PM
Rank: Member
Groups: Member

Joined: 7/5/2010
Posts: 27
Location: Texas
Have a need to run come VBA code when ProcessBook closes, but the object model doesn't include such an event for the Application object.

Is there a way to get this functionality?

The Application object has a DisplayDeactivate and ProcBookDeactivate event, but the help on the Display object's Deactivate event states that this event doesn't occur when a Display is closed.

The Display object has a BeforeClose event which might be of some use - by doing a Displays.Count to monitor when the last Display is closed - but the ProcBook object doesn't have a BeforeClose event. And besides, just because all open ProcBooks and Displays have been closed doesn't mean that the Application isn't still open.

What am I missing?

Jhcoxx
Sponsor  
 

OSIsoft vCampus is a subscription-based, online offering that consists of providing everything people need to develop applications on the PI System.
We invite you to take a "tour" of the OSIsoft Virtual Campus - also feel free to consult the FAQ  or contact OSIsoft vCampus for more details.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.