disable a custom ribbon button when presentation is closed

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
 
S

Shyam Pillai

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
 
J

Jeroen

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top