...
While
lastBestaetigteMailNum = 0
And
j <= NumItems
Set
CurrentItem = objInbox.Items(j)
If
j > 1
And
objInbox.Items(j).EntryID = InhaltStr
Then
lastBestaetigteMailNum = j
lastBestaetigteMailSubject = objInbox.Items(j).Subject
lastBestaetigteMailSenderName =objInbox.Items(j).SenderName
lastBestaetigteMailReceivedTime = objInbox.Items(j).ReceivedTime
lastBestaetigteEntryMailID = objInbox.Items(j).EntryID
Set
myMailItem = CurrentItem
myMailItem.Display
Text = _
"Bestätigungsversand wird ab der E-Mail von"
& Chr(13) & Chr(13) & _
Chr(9) & lastBestaetigteMailSenderName & Chr(13) & Chr(13) &
"mit dem Betreff"
& Chr(13) & Chr(13) & _
Chr(9) & lastBestaetigteMailSubject & Chr(13) & Chr(13) &
"Empfangen am "
& Chr(13) & Chr(13) & _
Chr(9) & lastBestaetigteMailReceivedTime & Chr(13) & Chr(13) &
"durchgeführt."
Antwort = MsgBox(Text, vbOKCancel,
"Versand starten?"
)
ElseIf
j = 1
And
objInbox.Items(j).EntryID = _
InhaltStr
Then
Text =
"Keine neuen zu bestätigende E-Mails vorhanden!"
MsgBox (Text), vbInformation,
"Keine neuen E-Mails vorhanden!"
bolKeineNeue =
True
lastBestaetigteMailNum = j
End
If
j = j + 1
Wend