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
--
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/
(e-mail address removed) wrote in @l77g2000hsb.googlegroups.com: