You can find several examples of how to access variables in the editor in this forum, but also in the zenon VBA help.

Here is a small example of how to access variables in the editor:

Sub cnt_var()
Dim myVar As Variable
Dim i

Debug.Print MyWorkspace.ActiveDocument.Variables.Count
For i = 0 To MyWorkspace.ActiveDocument.Variables.Count - 1
    Set myVar = MyWorkspace.ActiveDocument.Variables.Item(i)
    If Not myVar Is Nothing Then
    End If
Next i
End Sub

I still would strongly recommend to participate in a VBA integration course!