Hi,
Sorry for the confusion. The macro you recorded was done in slide edit mode.
That means it is presuming there is an "active window" to work in, which
gets recorded in. However, when you switch to slideshow mode, it all falls
down because there is no active window to work in.
The code I pasted can be used to replace the code in your recorded macro. If
you paste it into your current macro, deleting all of the code except the
sub name and end sub at the end, it will do what you want in slideshow mode.
Note that if you paste it in and get a red coloured font, it means that line
wrap in the newsgroup has split a line and sent it to the next one. Else,
send me an email and I can send you a sample.

Signature
Regards,
Glen Millar
Microsoft PPT MVP
Tutorials and PowerPoint animations at
www.pptworkbench.com
glen at pptworkbench dot com
Please tell us your PowerPoint / Windows version,
whether you are using vba, or
anything else relevant
> Hi Glen,
>
[quoted text clipped - 109 lines]
>> > The action button does not work in the Normal or Slide Show view of the
>> > slide. What did I do wrong? Appreciate your help
novice - 09 Nov 2006 04:08 GMT
Hi,
Thank you for your explanation. It prompted me to put down the course notes
and create both Macros and Action Buttons in Slide Master of the blank
presentation, then link them together. It works in the slide show. I then
decided to experiment your codes as followings
(1) In a new presentation, I created macros on the Slide Master of a design
template with a title master. Test run of macros (Tools > Macro > macros)
failed. Then I used your codes instead, it also did not work. Finally I
combined your codes with last line of my code, and the macros (Color3,
Color4) run successfully.
If ActivePresentation.HasTitleMaster Then
ActivePresentation.TitleMaster.ColorScheme =
ActivePresentation.ColorSchemes(Index:=1)
End If
ActivePresentation.SlideMaster.ColorScheme =
ActivePresentation.ColorSchemes(Index:=1)
ActivePresentation.Slides.Range.ColorScheme =
ActivePresentation.SlideMaster.ColorScheme
Application.CommandBars("Task Pane").Visible = False
I continued on to link these macros with action buttons on the Slide Master
and tested them in Slide Show view. These buttons do NOT work.
Where was my mistake?
Why would a design template be so different from a blank template?
How should I correct it?
(2) Open the original Blank presentation (A) that I had already
successfully linked action buttons to Color1 macro and Color2 macro. In
slide master view, I inserted the same slide master with title master (B)
with Color3 and Color4 macros. I selected Slide Master / Title Master (in
Color 3) to ran Color4 macro. Expecting both slide master and title master
of the design template (B) will change color, I was surprised that ONLY the
blank template (A) responded. These 2 sets of macros are in 2 different
modules in MS Visual Basic.
Why would template A react to a macro that was not created for it?
Why did template B not change color?
When 2 slide masters are in one presentation, does one have priority over
the other?
Did I insert a new slide master correctly? (Insert > New Slide Master >
select a design template (either by replace selected design / add design)
Your help will be very much appreciated.
Novice
> Hi,
>
[quoted text clipped - 124 lines]
> >> > The action button does not work in the Normal or Slide Show view of the
> >> > slide. What did I do wrong? Appreciate your help
Glen Millar - 09 Nov 2006 11:26 GMT
Novice,
Gosh. It is all getting complicated. One thing you can do is run your macro
hitting the <F8> key which will step through each line one by one. That way
you will know where it is all falling over. I'm flat out like a lizard
drinking and don't know that I can go through all of this stuff you have
posted.

Signature
Regards,
Glen Millar
Microsoft PPT MVP
Tutorials and PowerPoint animations at
www.pptworkbench.com
glen at pptworkbench dot com
Please tell us your PowerPoint / Windows version,
whether you are using vba, or
anything else relevant
> Hi,
>
[quoted text clipped - 193 lines]
>> >> > the
>> >> > slide. What did I do wrong? Appreciate your help