Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PresentationClose event

Status
Not open for further replies.

jgillin

Programmer
Oct 22, 2003
82
US
Hi,
I'm handling the PresentationClose event in PowerPoint to "disable" (enabled = false) some menu items. Since the PresentationClose event occurs BEFORE the Presentations.Count number is decremented, I check to see if the # of presentations open equal "1" before disabling. This all works fine unless the user clicks "cancel" to the "do you want to save?" dialog that appears when closing. Since the PresentationClose event still fires, my code disables the menu items, but since they clicked cancel, their presentation is still open. I was hoping there was an "AfterPresentationClose" event, but no such luck. It appears that this doesn't exist.
Does anyone have any thoughts of ways to get around this?
Maybe I could do something along the lines a "SetTimeout" function in javascript where a function will run asynchronously after a specified amount of time. Is this possible with VBA? Also, if anyone has any other suggestions, please drop a note.
Thanks,
jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top