I created one Trend ( " GB201 " ) . How can I create a VBA code to erase without selecting it?
Oops, I just noticed I mentioned the code the other way around. For removing a tag in the trend is Trend1.RemoveTrace(<tagNo>), for removing the Trend itself is ThisDisplay.Symbols.Remove(<SymbolNo>)
You can delete the trace by
Or do you want to click the trace and glay color like following?
I don't understand what you mean by "erase without selecting it". Do you mean removing a tag in the trend? or the trend itself?
For the former, you can use Trend1.RemoveTrace(<tagNo>) and for the latter you can follow Kenji's suggestion.
I used the suggestion: " ThisDisplay.Trend1.RemoveTrace ( 1 ) " And Then I added another feature: " ThisDisplay.Trend1.AddTrace ( " Name Tag " ) ." It worked . Thanks Kenji and Joon .
Joon , now it worked. Thank you.
Retrieving data ...