Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Valid FileFormat's in SaveAs on a Word File

Status
Not open for further replies.

Hunter7

MIS
Jun 4, 2001
3
US
I am currently trying to convert a file from a word document into an HTML domcument, I am using Vb to open the document and then attempting to have microsoft word convert the file to an html document. I am using
variable.ActiveDocument.SaveAs ([FileName],[FileFormat])
but I can't figure out what a valid name is for the FileFormat. If any one can point me in the right direction would be a big help.

 
Don't know them all but I remembered wdFormatText somehow so I tried wdFormatHTML and it seemed to work.

Should be able to find these in the Object Browser somehow but I couldn't
 
Duh, they are there. I must have typoed. Search Object Browser for wdFormat in project with Word Objects.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top