So-called "free docs" -- files stored in Outlook folders -- are actually attachments to DocumentItem objects. Each such DocumentItem has a single Attachment in its Attachments collection. To read its contents, you need to save the file to the local drive using the Attachment.SaveAsFile method. You can then use methods appropriate to the type of file to open and read that file. For text files, the FileSystemObject library is very easy to use, but there are native VBA methods as well.

Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54

"GP" <GP@discussions.microsoft.com> wrote in message news:CBD9E26A-AEEC-4C1C-A983-7CA56969317C@microsoft.com...
>I am aware that it is possible to store Office documents, text files or other
> types of file in Outlook folders. I would like to be able to, using code,
> open a text file stored in an Outlook folder (on a mail server) and read the
> contents (configuration data). Does anyone know how this can be done? If not
> possible in VBA, can it be done in VB 2005?
>
> Thanks.
14 AprAccessing Text files stored in Outlook Folder.GP
14 Apr\ Re: Accessing Text files stored in Outlook Folder.Sue Mosher [MVP-Outlook]
14 Apr   \ Re: Accessing Text files stored in Outlook Folder.GP
All times are in (US) Eastern Daylight Time (GMT -4:00)