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
 

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