This is the sample code for value change using VBA
Sub m_oTag_ValueChange(Value As Variant)
Dim Msg, Style, Title, Help, Ctxt, Response, MyString
Msg = "Do you want to Add ?" ' Define message.
Style = vbYesNo + vbExclamation + vbDefaultButton1 ' Define buttons.
Title = "MsgBox Demonstration" ' Define title.
Help = "DEMO.HLP" ' Define Help file.
Ctxt = 1000 ' Define topic
' context.
' Display message.
Response = MsgBox(Msg, Style, Title, Help, Ctxt)
If Response = vbYes Then ' User chose Yes.
gTagDb("tes2").Value = gTagDb.GetTag("tes") + gTagDb.GetTag("tes1")
MsgBox gTagDb("tes2").Value, vbQuestion, "hello"