auto-initialize Application withevents object?

  • Thread starter Thread starter gentleBen
  • Start date Start date
G

gentleBen

ppt VBA question:
I want to automatically initialize an Application object when I run a
procedure. Specifically, I am trying to hide the ActionButtons when I
print out a generic presentation. I know I have to respond to a 'print'
event but in order to catch that event, I have create an
Application.withevents object. However, I don't want to remember to run
the initialization procedure of the Application object everytime I want to
run the procedure to print all the slides in my presentation with the
ActionButtons hidden. Any guidance or direction is appreciated.
cheers,
gentleBen
 
ppt VBA question:
I want to automatically initialize an Application object when I run a
procedure. Specifically, I am trying to hide the ActionButtons when I
print out a generic presentation. I know I have to respond to a 'print'
event but in order to catch that event, I have create an
Application.withevents object. However, I don't want to remember to run
the initialization procedure of the Application object everytime I want to
run the procedure to print all the slides in my presentation with the
ActionButtons hidden. Any guidance or direction is appreciated.

As long as the event trap code is in an addin that autoloads at PPT startup,
the event trap will be set for the duration of the PPT session (or possibly
until an unntrapped error crashes your addin <g>)
 

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

Back
Top