- Dieses Thema hat 1 Antwort und 2 Stimmen, und wurde zuletzt aktualisiert 20:09 um 24. November 2018 von .
Home-›Foren-›Outlook-›Outlook VBA-›VBA – drucken nach senden, mit speziellem Betreff
Verschlagwortet: Betreff, Drucken, EMail senden, Outlook, VAB
Hallo liebe Gemeinde,
ich habe das Problem, dass ich Mails mit bestimmtem Betreff nach dem senden drucken möchten, jedoch komme ich nicht weiter, da es alle drucken, nicht nur da gesendete. Es soll nur die letzte Email mit dem Betreff oder die aktuell gesendete drucken, nicht alle Emails mit dem Betreff.
Sub Emails_drucken()
Dim MyOutId As Integer
Dim MyOutFolder As Object
Dim MyOutlook As Object
Dim MySentItem As Object
Set MyOutlook = CreateObject(„Outlook.Application“)
Set MyOutFolder = MyOutlook.GetNamespace(„MAPI“).GetDefaultFolder(5)
For MyOutId = 1 To MyOutFolder.Items.Count
Set MySentItem = MyOutFolder.Items(MyOutId)
With MySentItem
If Left(MySentItem.Subject, 14) = „Bedarfsmeldung“ Then
.PrintOut
End If
End With
Next
End Sub
Ich bitte um Hilfe und Danke vorab.
Andreas
Hallo,
nein, mit VBA kennt sich hier kaum einer aus, ich auch nicht.
Wenn du einigermaßen Englisch kannst, vielleicht mal das Forum auf http://www.outlookcode.com/ probieren.
Peter
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
Abonnieren Sie den 14-tägig erscheinenden Newsletter von Mailhilfe.de kostenlos.
Der ständig aktuelle Tipps zu Thema Email für Sie bereithält!
Wie z.B. Outlook, GMail, Thunderbird oder auch KuNoMail, usw.
Ihre E-Mail Adresse: