> The following macro changes my slide's color sheme. No big deal. I have 5
> color schemes in the file. Any index number I put in the code works, EXCEPT
> for #3. When set it as #3, it applies scheme #4. Again, all the other
> numbers work, but #3. Nothing seems wrong with #3 color scheme itself. I use
> it on many slides and can apply it manually just fine.
>
> Here's what I'm using.
>
> Sub ColSch3()
> ActiveWindow.Selection.SlideRange.ColorScheme _
> = ActivePresentation.ColorSchemes(Index:=3)
> End Sub
>
This slight mod works here and if you run it from Normal view rather than from
w/in the IDE, you can watch what happens at each step. Start there and let us
know what you discover:
Sub DudeColors()
Dim x As Long
For x = 1 To ActivePresentation.ColorSchemes.Count
MsgBox "About to apply scheme: " & CStr(x)
ActiveWindow.Selection.SlideRange.ColorScheme _
= ActivePresentation.ColorSchemes(Index:=x)
Next ' color scheme
End Sub
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:
www.pptfaq.com
PPTools:
www.pptools.com
================================================