I'm trying to modify with VBA the ChartTag of an already existing SQC Chart.
The display file is "PRBKSQC", the name of the SQC chart is "SQCSymbol1" and the ChartTag I want to view is "CBHA-11.Value". The code I use is given below :
Private Sub TestTag2()
Set PRBKSQC = Application.ActiveDisplay
Dim SqcDef As SQCSymbolDefinition
Set SqcDef = SQCSymbol1.GetDefinition()
.ChartTag = "CBHA-11.Value"
I have this error : "Run time error 424 Object Required"
I tried to resolve the problem with the PI SQC Programme Reference but I didn't find any solution.
Thank you in advance for your help.