Powerpoint macros

  • Thread starter Thread starter DanCRobinson
  • Start date Start date
D

DanCRobinson

Dear All,
I have written some macros in powerpoint (they are simple things
to put random numbers in text boxs). They work fine, but when I insert a new
slide it upsets all the reference numbers and they no longer work. It is fine
in Excel, but I can't get it to work in PowerPoint. Any advice? Is there a
better way of numbering text boxs without using the slide number?
Regard
Dan
 
Dan,
If you post the relevant portion of the code, we could have the code fixed.
It's difficult to suggest anything with insufficient information.
 
As Shyam said, there are several ways to do what you want to do, depending on
the details. I'll try to suggest some possibilities. You might want to name
your slides. See Example 8.7 on my Web site:

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

Once you have named the slide, you can use the slide name instead of the
slide number.

You might want to have your macros execute from the current slide, instead
of another slide. Use ActivePresentation.SlideShowWindow.View.Slide instead
of ActivePresentation.Slides(###). I believe that Example 8.13 - 8.15 on my
site do this.

You might want to add your new slides to the end of the show, so the
numbering isn't disrupted.

Give us more details, and we might be more specific.

--David

David Marcovitz
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
Back
Top