Events in VBA

Is it possible to let VBA makes new events in event table and how.

Bets regards klaus :sunglasses:

Hello Klaus,

What you are asking for is not possible in the way I believe you mean. You cannot program VB-code to effect the EventTable.

What is possible though is to connect VB-events to ClassObjects, for example:

Private Sub Station_Close()
MsgBox “goodbye”
End Sub

Add the above to a station project, then close the station…

Hope this gives some input, to your work.

Best regards

/Ulrika Mor?n

Support Engineer

Check also out how to use IO events in the topic “read output in VBA”