Getting the file type.

J

Jan Kucera

Hi,
How can I find out which format is the document? I know about wdSaveFormat
and wdOpenFormat enumerations which I can use during save and open, but how
can I find out if the opened document is for example in XML?
Thanks,
Jan
 
C

Cindy M.

Hi Jan,
How can I find out which format is the document? I know about wdSaveFormat
and wdOpenFormat enumerations which I can use during save and open, but how
can I find out if the opened document is for example in XML?
Query the SaveAs dialog box with the document in question being the active
document:

If Dialogs(wdDialogFileSaveAs).Format = wdSaveXML Then

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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 :)
 

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