cancel
Showing results for 
Search instead for 
Did you mean: 

convert Word rtf file to mht file format to allow opening in Internet Explorer

DT
Level 4
I need to convert MS Word rtf file to mht file (single web page) format to allow opening in Internet Explorer. I have tried Save As using Word VBO object, but only renames the file and does not convert the format.   I appreciate a solution to this issue. Thanks
2 REPLIES 2

John__Carter
Staff
Staff
You'll need to adjust the Word VBO. Right click on the Save As page name and select Copy Right click again and select Paste Rename and publish the new page Rename the code stage to SaveAs2 In the code stage, change the 'save as' line to doc.SaveAs2(filename, 8) The 8 is a constant that represents HTML format. There are many other possible formats, see here https://docs.microsoft.com/en-us/office/vba/api/word.wdsaveformat

DT
Level 4
Thanks John, works perfectly.