Jonathan
Wed Nov 16 05:42:28 CST 2005
"sudhakar" <sudhakar@discussions.microsoft.com> wrote in message
news:328A62B8-9C5E-46C5-9A0E-869BC83FDFAA@microsoft.com...
>I would like to know how i can check whether a particular file is a valid
> Word Document or not.
>
> I tried to read the "Application Name" atribute in the summary information
> of file using ActiveDocument.BuiltInDocumentProperties collection. But it
> always returns "Microsoft Word" even though i open a PPT or Excel file.
>
> Please help me in addressing this issue.
>
> Thanks a lot in advance.
Take a look at this article
Getting access to the Document Properties of a Word file
http://www.word.mvps.org/FAQs/MacrosVBA/DSOFile.htm
--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org