David,
Is your OST file attached to Outlook and in use with an email address?
Or is it just a file in a folder?
Phil
just the file in the Folder
Hi David,
There seems to be some confusion which isn't helped by you not answering my questions.
The code I've written is to read emails from a folder from an account attached to Outlook. That account must be configured as a working account in Outlook.
I asked for a screenshot of your Outlook folders from inside Outlook but you sent a screenshot of folders in Windows Explorer on your hard drive.
The name of the folder in that screenshot was GKJ00OH004 - this is not the account name I am looking for. If you referred to the screenshots Marsil posted in the original thread this started in, you would see what I mean.
I have attached some samples below. You can see that the account name is John Smith and the email address is [email protected].
If your OST file is not connected to Outlook and in use by an account then my VBA code will not work for you. OST files are offline stores and I do not know any way to open them from VBA. They are not the same as PST files. If you are trying to recover the emails because the OST file got disconnected from Outlook, you will probably need specialist recovery software to get them. I don't know any other way.
So you need to check in your Outlook what the name of the account is and that it is set up and working and that it is connected to the OST file pictured in your screenshot.
If you just want to read the Inbox then don't worry about a screenshot of the Outlook folders.
Regards
Phil
But still not sure where to check the name of the Account in outlook ?
Would it be ng.david.wl
Hi David,
You check from the account setup in Outlook. It'll depend on your version of Outlook but it'll be something like File -> Account Settings
But, looking at that latest screenshot, you're email address and account name may be the same. It can be set up this way.
Try the attached file.
Regards
Phil