How to read filetype in vba word 2007
Posted on 2009-05-05
I'm looking for a way to replace the filesearch functionality that was available in vba in Office 2003. I've looked at Altfilesearch but it doesn't have what I need.
What I need to do is return the filetype from a known file so that I can then complete an action, based on that file type. I'm looking for microsoft office document imaging file types. Problem is, the extension will always be .tif, regardless of the actual file type. Some may be .tif, which is fine. Others will actually be document imaging files, which I then have to perform an action on.
Any ideas on the way to search the filetype in VBA from Word 2007? I've been stumped by this one for a while now.