Thema Datum  Von Nutzer Rating
Antwort
29.10.2020 07:51:49 ch79
NotSolved
29.10.2020 08:30:35 TestGast
NotSolved
29.10.2020 12:22:48 volti
NotSolved
29.10.2020 12:32:44 volti
NotSolved
30.10.2020 14:08:05 Gast83026
NotSolved
30.10.2020 17:46:32 volti
NotSolved
30.10.2020 17:48:41 volti
NotSolved
30.10.2020 21:03:09 ch79
NotSolved
03.11.2020 11:28:35 ch79
NotSolved
03.11.2020 13:27:01 volti
NotSolved
03.11.2020 15:32:08 Gast47610
NotSolved
03.11.2020 16:12:31 volti
NotSolved
03.11.2020 17:33:46 Mase
NotSolved
03.11.2020 17:45:27 Mase
NotSolved
03.11.2020 19:31:10 volti
NotSolved
Blau Beispiel: Was passiert, wenn man HTMLBody löscht und wieder einliest
03.11.2020 19:57:37 Mase
NotSolved
03.11.2020 22:15:13 volti
NotSolved
03.11.2020 23:19:31 Mase
NotSolved

Ansicht des Beitrags:
Von:
Mase
Datum:
03.11.2020 19:57:37
Views:
754
Rating: Antwort:
  Ja
Thema:
Beispiel: Was passiert, wenn man HTMLBody löscht und wieder einliest

Hallo Karl-Heinz,

ja. Funktioniert bedingt, wohl aber nicht zuverläsig.

 

Schau Dir mal folgendes Ergebnis an:

Sub TestHtmlBody()

    Dim ff As Integer
    Dim v
    With CreateObject(class:="Outlook.Application").CreateItem(0)
        .display
        
        v = .htmlbody
        .htmlbody = "<span font ...>" & v
        v = .htmlbody
        
    End With
    
    ff = FreeFile
    Open Environ("userprofile") & "\Desktop\Test.csv" For Output As #ff
        Print #ff, v
    Close
    
End Sub

 

Bei mir schaut das dann so aus:

Der SPAN-Bereich wird zwar korrekt interpretiert (!)  (obwohl das Grundgerüst nonkonform ausschaut) allerdings, wie in TEs Fall eben nur bedingt.

 

In der OH findet man unter als Bemerkung:

https://docs.microsoft.com/de-de/office/vba/api/outlook.mailitem.htmlbody

 


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
29.10.2020 07:51:49 ch79
NotSolved
29.10.2020 08:30:35 TestGast
NotSolved
29.10.2020 12:22:48 volti
NotSolved
29.10.2020 12:32:44 volti
NotSolved
30.10.2020 14:08:05 Gast83026
NotSolved
30.10.2020 17:46:32 volti
NotSolved
30.10.2020 17:48:41 volti
NotSolved
30.10.2020 21:03:09 ch79
NotSolved
03.11.2020 11:28:35 ch79
NotSolved
03.11.2020 13:27:01 volti
NotSolved
03.11.2020 15:32:08 Gast47610
NotSolved
03.11.2020 16:12:31 volti
NotSolved
03.11.2020 17:33:46 Mase
NotSolved
03.11.2020 17:45:27 Mase
NotSolved
03.11.2020 19:31:10 volti
NotSolved
Blau Beispiel: Was passiert, wenn man HTMLBody löscht und wieder einliest
03.11.2020 19:57:37 Mase
NotSolved
03.11.2020 22:15:13 volti
NotSolved
03.11.2020 23:19:31 Mase
NotSolved