This content has been marked as final. Show 2 replies
1 of 1 people found this helpful
Explore the TrendFormat object for the Properties you want to toggle on or off. Your code can be as simple as:
Sub ChangeTrends() Dim s As Symbol For Each s In Symbols If s.Type = pbSYMBOLTYPE.pbSymbolTrend Then Dim t As Trend Set t = s Dim tf As TrendFormat Set tf = t.GetFormat tf.ShowDescription = False tf.ShowTagName = False Call t.SetFormat(tf) Set t = Nothing End If Next s End Sub
This works perfectly ! Thanks a lot !