Login   /   Register

Save a Document as an HTML File

Rate this article
     1 votes, average: 1 out of 51 votes, average: 1 out of 51 votes, average: 1 out of 51 votes, average: 1 out of 51 votes, average: 1 out of 5
Loading ... Loading ...
April 1st, 2008 by daniva

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

Leave a Reply

You must be logged in to post a comment.

This article was viewed 388 times