Thema Datum  Von Nutzer Rating
Antwort
15.01.2020 16:30:09 Nils
NotSolved
16.01.2020 00:01:14 xlKing
NotSolved
16.01.2020 00:31:17 xlKing
NotSolved
16.01.2020 00:59:57 Nils
NotSolved
16.01.2020 06:16:28 Mase
NotSolved
16.01.2020 11:23:02 Nils Finkeldei
NotSolved
16.01.2020 12:01:35 Mase
NotSolved
16.01.2020 12:09:39 Gast99781
NotSolved
16.01.2020 12:27:49 Nils
NotSolved
16.01.2020 12:26:47 Nils
NotSolved
Rot Pfad und Name einer MSG-Datei
16.01.2020 12:52:14 Mase
NotSolved
16.01.2020 12:58:10 Nils
NotSolved
16.01.2020 13:01:57 Mase
NotSolved
17.01.2020 12:51:59 Nils
NotSolved
17.01.2020 12:56:45 Mase
NotSolved
17.01.2020 12:58:46 Gast92861
NotSolved
17.01.2020 13:04:05 Nils
NotSolved
20.01.2020 15:06:57 Nils
NotSolved
21.01.2020 23:25:00 Nils
NotSolved
22.01.2020 11:27:28 Mase
NotSolved

Ansicht des Beitrags:
Von:
Mase
Datum:
16.01.2020 12:52:14
Views:
622
Rating: Antwort:
  Ja
Thema:
Pfad und Name einer MSG-Datei

Die eigentliche Frage ist doch, welches Object diese Eigenschaften bereitstellt und wie der Inspector Dir dabei hilft?

 

Ein Beispiel von mir aus einem anderen Forum (artverwandte Problemstellung):

 

Option Explicit

Private WithEvents oInspector As Outlook.Inspectors
Public WithEvents oEmail As Outlook.MailItem
Const sMailItem As String = "MailItem"


Private Sub Class_Initialize()
    On Error GoTo err
    Set oInspector = Outlook.Application.Inspectors
err:
If err.Number <> 0 Then
    MsgBox err.Number & vbCrLf & err.Description
    Resume Next
End If
End Sub

Private Sub oEmail_Forward(ByVal Forward As Object, Cancel As Boolean)
    If Not oEmail Is Nothing Then
        With oEmail
            If .Class = olMail Then
                If Not Forward Is Nothing Then
                    Forward.BCC = "Email weiterleiten"
                End If
            End If
        End With
    End If
End Sub

Private Sub oEmail_Open(Cancel As Boolean)
if not oEmail is nothing then
    With oEmail
        If .Size = 0 And .ReceivedTime - .SentOn = 0 And .Subject = vbNullString Then
            'Emailgrösse Ist 0 Byte
            'zusätzlich ist Empfangszeit minus Versandtzeit = 0
            'ausserdem, kein Betreff
            .BCC = "Neue Email"
        End If
    End With
End if
End Sub

Private Sub oEmail_Reply(ByVal Response As Object, Cancel As Boolean)
    If Not oEmail Is Nothing Then
        With oEmail
            If .Class = olMail Then
                If Not Response Is Nothing Then
                    Response.BCC = "Auf Email antworten"
                End If
            End If
        End With
    End If
End Sub

Private Sub oInspector_NewInspector(ByVal Inspector As Inspector)
    If TypeName(Inspector.CurrentItem) = sMailItem Then
        Set oEmail = Inspector.CurrentItem
    End If
End Sub

 

 

https://www.ms-office-forum.net/forum/showthread.php?p=1942598&highlight=inspector#post1942598

 

 

gruß

Marco


Ihre Antwort
  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen
Thema: Name: Email:



  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen

Thema Datum  Von Nutzer Rating
Antwort
15.01.2020 16:30:09 Nils
NotSolved
16.01.2020 00:01:14 xlKing
NotSolved
16.01.2020 00:31:17 xlKing
NotSolved
16.01.2020 00:59:57 Nils
NotSolved
16.01.2020 06:16:28 Mase
NotSolved
16.01.2020 11:23:02 Nils Finkeldei
NotSolved
16.01.2020 12:01:35 Mase
NotSolved
16.01.2020 12:09:39 Gast99781
NotSolved
16.01.2020 12:27:49 Nils
NotSolved
16.01.2020 12:26:47 Nils
NotSolved
Rot Pfad und Name einer MSG-Datei
16.01.2020 12:52:14 Mase
NotSolved
16.01.2020 12:58:10 Nils
NotSolved
16.01.2020 13:01:57 Mase
NotSolved
17.01.2020 12:51:59 Nils
NotSolved
17.01.2020 12:56:45 Mase
NotSolved
17.01.2020 12:58:46 Gast92861
NotSolved
17.01.2020 13:04:05 Nils
NotSolved
20.01.2020 15:06:57 Nils
NotSolved
21.01.2020 23:25:00 Nils
NotSolved
22.01.2020 11:27:28 Mase
NotSolved