Demonstration script that opens a file named C:\Scripts\Test.doc and then saves that file in HTML format.
Const wdFormatHTML = 8
Set word = CreateObject( "Word.Application" )
word.Visible = True
Set doc = word.Documents.Open( "c:\scripts\test.doc" )
doc.SaveAs( "C:\Scripts\test.htm", wdFormatHTML )
Posted in MS-Word


daniva




Recent Comments