How to convert Word file to HTML file1

G

ghostnguyen

Hi all,

I am finding the method that can convert the Word file to HTML file, exactly
what we can get when open the "Save As" Dialog, select box "Save as type"
with "Web Page,Filtered".

I has searched on msdn.microsoft.com and what I found is the "Save As"
method which has a parameter "FileFormat" and unfortunately "wdFormatRTF" is
the only of the parameter that I can found.

Help me.
 
C

Cindy M -WordMVP-

Hi Ghostnguyen,
I am finding the method that can convert the Word file to HTML file, exactly
what we can get when open the "Save As" Dialog, select box "Save as type"
with "Web Page,Filtered".

I has searched on msdn.microsoft.com and what I found is the "Save As"
method which has a parameter "FileFormat" and unfortunately "wdFormatRTF" is
the only of the parameter that I can found.
Looking up SaveAs in the Word VBA Help files is always a good source of
information, as is the VBEditor's object browser (F2). From the Help files:

WdSaveFormat can be one of the following WdSaveFormat constants.
wdFormatDocument
wdFormatDOSText
wdFormatDOSTextLineBreaks
wdFormatEncodedText
wdFormatHTML
wdFormatRTF
wdFormatTemplate
wdFormatText
wdFormatTextLineBreaks
wdFormatUnicodeText


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
G

ghostnguyen

Thanks!

Cindy M -WordMVP- said:
Hi Ghostnguyen,

Looking up SaveAs in the Word VBA Help files is always a good source of
information, as is the VBEditor's object browser (F2). From the Help
files:

WdSaveFormat can be one of the following WdSaveFormat constants.
wdFormatDocument
wdFormatDOSText
wdFormatDOSTextLineBreaks
wdFormatEncodedText
wdFormatHTML
wdFormatRTF
wdFormatTemplate
wdFormatText
wdFormatTextLineBreaks
wdFormatUnicodeText


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)


This reply is posted in the Newsgroup; please post any follow question or
reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top