Quantcast
Channel: General Office Development forum
Viewing all articles
Browse latest Browse all 2257

VBA: Connector style in SmartArt

$
0
0

I'm trying to write vba-code creating Horizontal Hierarchy Smart object.

1. I use the following code to create SmartArt shape:

Set oSALayout = Application.SmartArtLayouts(96)Set 
oShp = Sheets(1).Shapes.AddSmartArt(oSALayout)

Than I create one root node (Node1) and two child nodes (Node1_1 and Node1_2). I change colors of child nodes:

Node1_1.Shapes(1).Fill.ForeColor.RGB = Color1
Node1_2.Shapes(1).Fill.ForeColor.RGB = Color2

Automatically two connectors appear between root and child nodes. I need to change colors of this connectors. Each connector should have the same color as corresponding child node. How can I do this?

Thanks in advance


Viewing all articles
Browse latest Browse all 2257

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>