Hier meine Aufgabe:
Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument
Set uidoc = workspace.CurrentDocument
Set doc = uidoc.document
'das Document hat Felder mit vorhandenen Werten
'die ich der Einfachheithalber hier setze:
doc.wert1 = 200
doc.wert2 = 300
doc.formel = "doc.wert1(0) + doc.wert2(0)"
Dim ergebnis As Variant
ergebnis = doc.formel(0)
Messagebox(ergebnis)
End Sub
Das Probelm:
ergebnis ist nicht 500, sondern der String "doc.wert1(0) + doc.wert2(0)"