Initializeing a Slide

J

JMP23834

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

David M. Marcovitz

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

John Pyle

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
 
D

David M. Marcovitz

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/
 

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