Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to color all the arrows in all the slides in red color using VBA to avoid manual work.

What I have tried:

I have not tried as I am new to VBA
Posted
Updated 20-Jun-17 2:08am

Start here: Changing Color Formatting in Shapes in Office 2010[^] and change the code to your needs.
 
Share this answer
 
Solution #2: Google "How to color all arrows in a powerpoint presentation red"
Then figure it out yourself.


Solution #3: Try something like the following:

Sub ColorArrowsRed()

Dim sl As Slide
Dim sh As Shape

    For Each sl In ActivePresentation.Slides
        For Each sh In sl.Shapes
            'Debug.Print sl.Name, sh.Name, sh.Line.ForeColor.RGB
            If InStr(sh.Name, "Arrow") > 0 Then
                sh.Line.ForeColor.RGB = RGB(256, 0, 0)
            End If
        Next
    Next

End Sub


As always, have nice day.

.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900