G
Glyn Jones
Hi
I am having trouble assigning a macro to an action button to work during a
show. I have read a lot of the previous answers but I still can't get it to
work.
I am running a small quiz where the front sheet has ten buttons numbered 1
to 10, when you click on a button it takes you to a set slide with a question
on, at the bottom of that page is another button that takes you back to the
selection slide. What I am trying to do is when you press the numbered button
a large X apears on the button to say that that button has been used. This is
the macro that I have written and it works ok in edit mode but will not work
in slide show format.
ActiveWindow.Selection.SlideRange.Shapes("AutoShape 7").Select
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Select
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Characters(Start:=1,
Length:=1).Select
ActiveWindow.Selection.TextRange.Text = "X"
ActiveWindow.View.GotoSlide Index:=2
End Sub
Any help would be appriciated
Glyn
I am having trouble assigning a macro to an action button to work during a
show. I have read a lot of the previous answers but I still can't get it to
work.
I am running a small quiz where the front sheet has ten buttons numbered 1
to 10, when you click on a button it takes you to a set slide with a question
on, at the bottom of that page is another button that takes you back to the
selection slide. What I am trying to do is when you press the numbered button
a large X apears on the button to say that that button has been used. This is
the macro that I have written and it works ok in edit mode but will not work
in slide show format.
ActiveWindow.Selection.SlideRange.Shapes("AutoShape 7").Select
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Select
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Characters(Start:=1,
Length:=1).Select
ActiveWindow.Selection.TextRange.Text = "X"
ActiveWindow.View.GotoSlide Index:=2
End Sub
Any help would be appriciated
Glyn