A family of Microsoft word processing software products for creating web, email, and print documents.
Hi Graham,
Your AddIn is a master piece mate... Great Job to you too... The link was on this page itself...
When i save my myfile.docx as htm format, the htm file works file in web browsers and as Outlook signature.
Well, your HTM export seems to create filtered HTM format which removes certain formatting.
- Is it possible to export to normal HTM format instead of Filtered?
Im a novice in Macros but i managed to compile these:
1:
Sub ExportToHTM()
'
' ExportToHTM Macro
'
'
ChangeFileOpenDirectory "H:\00-Public\99-UPDATES\SIGNATURES\DEC2013\DOCX"
ActiveDocument.SaveAs2 FileName:= _
"H:\00-Public\99-UPDATES\SIGNATURES\DEC2013\DOCX\ActiveDocument.Filename", FileFormat:= _
wdFormatHTML, LockComments:=False, Password:="", AddToRecentFiles:=True, _
WritePassword:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
False, CompatibilityMode:=0
End Sub
---++++++++
2:
Sub ExportToHTM()
'
' ExportToHTM Macro
'
'
ChangeFileOpenDirectory "H:\00-Public\99-UPDATES\SIGNATURES\DEC2013\DOCX"
ActiveDocument.SaveAs2 FileName:= _
"ActiveDocument.Filename", FileFormat:= _
wdFormatHTML, LockComments:=False, Password:="", AddToRecentFiles:=True, _
WritePassword:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
False, CompatibilityMode:=0
End Sub
-----++++++++
Both scripts do export my docx file to the correct htm format except that the file name is not what's required.
As i have several docx files, i want the macro to output htm files using the current filename.
e.g. myfile1.docx to myfile1.htm ;;; myfile2.docx to myfile2.htm
I am sure you will find a solution for me Graham.
Cheers to all,
Muzafar