Initializeing a Slide

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

During run time I want to initial fiels on a slide just before it is
displayed. Does anyone have a sample of a sub that does this. Sorry if this
is basic but I am writing my first PP/VBA presentation.
 
I have a lot of examples that do a lot of different kinds of things, but
I am not clear on what you mean by initializing. You can see some VBA
examples on my site:

http://www.loyola.edu/education/PowerfulPowerPoint/

But I'm not clear about what you want to do, so I don't know if any of
those will help you.

--David
--
David M. Marcovitz
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
David,

I have been looking at some of your samples and they have helped greatly. I
will try to explain what I am trying to do.

My first slide has this:

Private Sub CommandButton1_Click()
Slide1.Initialize_Main
ActivePresentation.SlideShowWindow.View.GotoSlide ("2")
End Sub

Here is my problem. I will be going to slide1 from many other slides and
would like to have an event to trigger the initilization routine. Something
like a "GotFocus" event
 
Thanks. I'm glad my samples have been helpful to you.

There are two ways to do what you want to do. You basically want to trap
open slide events, and PowerPoint doesn't do that exactly. However, there
are add-ins that can capture events like this. This might be helpful:

http://www.mvps.org/skp/autoevents.htm

Otherwise, you just have to have every button that links to that slide use
VBA to go to the slide as well as initialize.

--David

David M. Marcovitz
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
As David's explained, it's fairly tricky (and requires an installed add-in) to
be able to respond to events like changing slides.

Depending on what you need to do, this might work:

Put a "dummy" slide at the beginning of the presentation.
On it put some sort of "Click here to begin" button.
Set that button's action settings to run the macro you've written and move to
slide 2 (which is the *real* beginning of your show).
 
Back
Top