Looking for help here:
I am trying to replace a string in all tag references for all value and multistate symbols in a process book file using VBA. However with below piece of code, tag references in value symbols are getting changed but tag references in multistate symbols are not changing. Is there any way to change tag refences for multistate symbols using VBA.
On Error Resume Next
Dim M As Symbol
For Each M In ThisDisplay.Symbols
M.SetTagName (Replace(S.GetTagName(1), "XXXX", "YYYY"))
''''''''''''''If M.IsMultiState Then M.SetTagName (Replace(M.GetTagName(1), "xxxxx", "yyy"))