AnsweredAssumed Answered

SQC CHART - VBA - ChartTag

Question asked by YoannCollinSubiron on Apr 12, 2017
Latest reply on Apr 13, 2017 by YoannCollinSubiron

Hello everyone,
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()

 

With SqcDef
    .ChartTag = "CBHA-11.Value"
End With

 

SQCSymbol1.SetDefinition SqcDef

End Sub

 

 

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.

 

Best regards.

 

Yoann

Outcomes