Supported files

W

Warrio

Hello,

Is there a way to know what are the extension's files supported (that can be
opened) by word using vba?

Thanks for any suggestion
 
O

old man

Hi,

Generally you open the file and Word figures out the type from the extension
of the name. Here are the different types of files you can save (From 2003
Word VBA help) and they seem to match the extensions that appear in the Files
of type: drop down list when a file saved in Word):

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

old man
 
Top