I am wondering what would be the VBA script/syntax to click a button and have trends show or hide tagnames.
Tags are hidden (shown below)
Click button to show Tag Names (shown below)
Any help would be greatly appreciated!
Thanks Jesse Ru. With that help and some more google search support, here's how to make it work!
Private Sub ShowTags()
Dim t As TrendSet t = ThisDisplay.Trend1 Dim f As TrendFormatSet f = t.GetFormat
f.ShowTagName = Truet.SetFormat f Set t = Nothing
Sorry for the delayed response. I'd recommend taking a look at the PI Processbook 2015 Programmer's Reference Guide (available here: Download Link)
Essentially what you need to do is programmatically reference the trend object and set the option to hide tags to be true.
Retrieving data ...