Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 04-24-2018, 10:13 AM
JohnWilson JohnWilson is offline Smart Art Org Chart -  Is it possible to give a custom RGB color for each level within the hiearchy Windows 7 64bit Smart Art Org Chart -  Is it possible to give a custom RGB color for each level within the hiearchy Office 2016
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,914
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Here is how to start (then it's up to you)

Code:
Sub SA_col()
Dim oSA As SmartArt
Dim L As Long
'smart art must be selected!
Set oSA = ActiveWindow.Selection.ShapeRange(1).SmartArt
For L = 1 To oSA.AllNodes.Count
Select Case oSA.AllNodes(L).Level
Case Is = 1
oSA.AllNodes(L).Shapes(1).Fill.ForeColor.RGB = RGB(0, 0, 255) 'blue
Case Is = 2
oSA.AllNodes(L).Shapes(1).Fill.ForeColor.RGB = RGB(0, 255, 0) 'green
'etc for other levels
End Select
Next L
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Smart Art Org Chart -  Is it possible to give a custom RGB color for each level within the hiearchy Smart Art - Updating a Chart AD1983 PowerPoint 2 10-18-2016 06:26 AM
Smart Art Org Chart -  Is it possible to give a custom RGB color for each level within the hiearchy Can I select the entire second or third level in an org. chart? blockie Word 1 08-25-2014 11:19 PM
Smart Art Org Chart -  Is it possible to give a custom RGB color for each level within the hiearchy I created a custom XML color scheme. How do I add that to the Built-in Color? Cassik PowerPoint 5 11-04-2013 02:08 PM
Custom colors for smart art - via template? theme? add-on? fl8rmaus PowerPoint 0 09-26-2012 08:10 AM
Smart Art Org Chart -  Is it possible to give a custom RGB color for each level within the hiearchy Custom field formula not working at summary task level abw1987 Project 3 10-05-2011 07:17 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:52 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft