Hello,
If you manually convert a .mht into a Excel format in Excel UI and record a macro you'll get following VBA code:
Sub Macro1()
'
' Macro1 Macro
'
'
Workbooks.Open Filename:="C:\Users\xxxx\Documents\ExcelOpenMHT.mht"
ActiveWorkbook.SaveAs Filename:= _
"C:\Users\v-timli\Documents\ExcelOpenMHT.xlsx", FileFormat:=xlOpenXMLWorkbook _
, CreateBackup:=False
End Sub
Therefore, you have to get a Excel installed in your computer, if you want the convertion completed within the Excel you only need to modify above code.
If you need to perform the same task outside Excel in your own application you need to add reference to Excel Object Library in your project in Visual Studio.
Thanks.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.