1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
   | Const DATAOBJECT_BINDING As String = "new:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}"
 
Sub ViewHTML() 
    Dim IE As Object
    Set IE = CreateObject("InternetExplorer.Application")
    IE.Visible = False
    IE.navigate "about:blank"
    IE.Document.Body.innerHTML = Sheets("html").Range("A1").Value 'update to the cell that contains HTML you want converted
    IE.ExecWB 17, 0                                               'Select all contents in browser
    IE.ExecWB 12, 2                                               'Copy them
   Sheets("html").Range("B1")=PressePapier     'update to cell you want converted HTML pasted in ou
    IE.Quit
End Sub
Public Property Let PressePapier(Value)
    With CreateObject(DATAOBJECT_BINDING)
        .SetText Value
        .PutInClipboard
    End With
End Property
 
 
Public Property Get PressePapier()
    With CreateObject(DATAOBJECT_BINDING)
        .GetFromClipboard
        PressePapier = .GetText
    End With
End Property | 
Partager