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
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