AnsweredAssumed Answered

VBA to check each ProcessBook value on display and hide if No Data

Question asked by kbobeck on Dec 27, 2016
Latest reply on Jan 4, 2017 by kbobeck

Hi there,


I'm not very familiar with VBA and my past attempts have revolved around piecing together parts of other scripts. However, in this case, I am not succeeding in creating exactly what I want.


I have an Element Relative display where some locations have certain points, but others don't. For example, Location1 has TagA and TagB but Location2 only has TagA. When a location does not have that point, I would like the value to be hidden (i.e., Tag B is not shown on Location2's display). Then, rather than individually checking each value, I was trying to cycle through the whole display. I thought this would be simple, but my inexperience is holding me up. I've tried using bits and pieces from these questions, with no success.


[PI-ProcessBook] How to hide a value symbol if the user has no read access on the associated PI Tag


Pull Muliple Element Relative Tags at Once in ProcessBook


If someone could please assist, I would greatly appreciate it!