I need to "SaveAs" a list of emails to html including colorshememapping.xml, filelist.xml, and themedata.thmx files?
If I "SaveAs" html manually one by one from Outlook to a specified shared folder, there are separate folders with 3 files (colorshememapping.xml, filelist.xml, and themedata.thmx) created on top of the "Email subject.htm".
The above manual step is different from below macro in Excel VBA that just changes the .msg to .htm.
How can I SaveAs a list of emails to htm format like I have done manually in Outlook.
There is another limitation. I cannot use Application.ActiveInspector
due to security set by my company.
Sub Chgext()
ThisWorkbook.Activate
Sheets("RM response").Select
strSourceDirectory = Range("B1").Value
strSourceFile = Dir(strSourceDirectory & "*.msg")
Do While strSourceFile <> ""
Name strSourceDirectory & strSourceFile As strSourceDirectory &
Replace$(strSourceFile, ".msg", ".htm")
c = c + 1
strSourceFile = Dir()
Loop
End Sub