disable a custom ribbon button when presentation is closed

  • Thread starter Thread starter Jeroen
  • Start date Start date
J

Jeroen

with a custom ribbon in PPT I'm trying to find out how to disable the buttons
when the active presentation is closed.

the PresentationClose event has the problem that it always fires, even if
you cancel out of the close. also, this event fires after every Print event
and thus my buttons would be disabled after printing. I just want my custom
buttons to behave in the same way as the built-in buttons do when you close a
presentation.

any ideas?
thanks
jeroen
 
Do you want to disable the buttons when a specific presentation is closed or
do you want to disable it when not presentation windows are open?
Application.Windows.Count will tell you if any presentations are open and
active.

Regards,
Shyam Pillai

Animation Carbon: http://www.animationcarbon.com
 
I want to know when a specific presentation is closed and then disable some
buttons. Windows.Count is useful (thanks for pointing that out) but the count
in the Presentation.Close event still includes the window that is about to
close. This event fires before the window is actually closed (which is the
reason I can't figure out if it really closed or whether the closing is
cancelled). So how can the code know if the window was really closed?
 
Back
Top