Wie findest Du das?
Dim ws As New notesuiworkspace
Dim uidoc As notesuidocument
Dim uidocm As notesuidocument
Set uidoc = ws.currentdocument
Const macromaildb$ = "@MailDBName"
maildb = Evaluate(macromaildb$)
Dim a As Variant
a=uidoc.fieldgettext("email")
b=uidoc.fieldgettext("email2")
c= uidoc.fieldgettext("email3") -> u.s.w
If b="" Then
Set uidocm = ws.composedocument(maildb(0), maildb(1), "Memo")
Call uidocm.fieldsettext("EnterSendTo", a )
Else
Dim arr(1 To 2) As String
arr(1)=a
arr(2)=b
arr(3)=c -> u.s.w
Dim ein As Variant
ein=ws.Prompt(PROMPT_OKCANCELLIST, "ACHTUNG!!!Die Person hat mehrere eMail Adressen", "Welche eMail Adresse soll verwendet werden?",a,arr)
Set uidocm = ws.composedocument(maildb(0), maildb(1), "Memo")
On Error Resume Next
Call uidocm.fieldsettext("SendTo", ein )
End If