thats fantastic... however i just tried it and it didnt work. i put
the code that you wrote onto the back button and just put the back
button on the master slide but when i viewed the slide the button
didnt go back. is this becasue its in the master slide or should it
still work even if its in the master?
Just to be sure that this wasn't a Mac issue, I did it on my Mac, and it
worked just fine. In my Mac version of PowerPoint, there is a preference
(under General) to Enable macro virus protection. However, I believe this
just asks if you want to run macros when macros are present, so you
should have said "yes."
I assume you know that the actions only happen in Slide Show View.
Also, this procedure does not work when you click the button on the first
slide (because it can't go back to the 0th slide), but it should work on
every other slide.
Check for extra line breaks caused by the news system. The code I posted
had 5 lines. The first ends with (); the second and third end with
underscores, the fourth ended with msoTrue, and the fifth just had End
Sub.
You might try going into the VBA Editor and going to the Debug menu and
choosing Compile to see if it comes up with any errors.
Have you successfully run any macros? Try something simple like:
Sub HelloWorld()
MsgBox "Hello, World"
End Sub
Unfortunately, I can't look over your shoulder to see what you are doing
wrong, but the code works. I have tested it on Macs and PCs with a button
on a regular slide and on a master slide.
--David

Signature
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
cherylhyams@hotmail.com wrote in news:1174925724.482075.102050
@l77g2000hsb.googlegroups.com:
> thats fantastic... however i just tried it and it didnt work. i put
> the code that you wrote onto the back button and just put the back
> button on the master slide but when i viewed the slide the button
> didnt go back. is this becasue its in the master slide or should it
> still work even if its in the master?
cherylhyams@hotmail.com - 27 Mar 2007 09:15 GMT
hey,
i've tried the scripting on both the master and a regular slide and
the button doesn't seem to go back... i will try debugging. I managed
to use the script you gave me initially and that all works fine but
for some reason this new script doesn't seem to do anything. I will
keep trying. Thanks for all your help :)
cherylhyams@hotmail.com - 27 Mar 2007 09:28 GMT
I opened up a different presentation and tried the script again and it
works!
it must have been something I was doing wrong before... the back
button works perfectly now!
thankyou so much for all your help... i've been struggling with this
problem for ages.
Just one last thing... I also need a simialr script for the forward
button, otherwise the same problem will arise as i will only be able
to go forward once and after that the animation will not replay.
So i need scripting that says go forward one and reset. is it as
simple as exchanging the -1 for a +1 or is it more complicated than
that? thanks again, sorry to keep bugging you.
David M. Marcovitz - 27 Mar 2007 14:30 GMT
I'm glad you got it working. There are certain types of errors that cause
all your scripts to stop working, so you might try deleting everything
from the module with the VBA and putting it back in.
Changing from -1 to +1 should work for your next buttons.
--David

Signature
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
cherylhyams@hotmail.com wrote in news:1174984126.207460.89410
@b75g2000hsg.googlegroups.com:
> I opened up a different presentation and tried the script again and it
> works!
[quoted text clipped - 10 lines]
> simple as exchanging the -1 for a +1 or is it more complicated than
> that? thanks again, sorry to keep bugging you.
cherylhyams@hotmail.com - 27 Mar 2007 09:45 GMT
just tried replacing minus one with plus one and it works as a forward
button so thats FANTASTIC!!! Everything is working perfectly....I
can't tell you how much you have helped! This problem has been
stopping us from finishing the presentation for months, I can't
believe its finally resolved!!! THANKYOU
sooooooooooooooooooooooooooooooooo much
David M. Marcovitz - 27 Mar 2007 14:32 GMT
I'm glad I could help. I also really appreciated your attempts to help
yourself.
--David

Signature
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
cherylhyams@hotmail.com wrote in news:1174985144.535743.276210
@d57g2000hsg.googlegroups.com:
> just tried replacing minus one with plus one and it works as a forward
> button so thats FANTASTIC!!! Everything is working perfectly....I
> can't tell you how much you have helped! This problem has been
> stopping us from finishing the presentation for months, I can't
> believe its finally resolved!!! THANKYOU
> sooooooooooooooooooooooooooooooooo much