Hi,
I have a macro that fetches a specific email (identified by the subject) from an Outlook account, downloads the attachment (an XL file) and then proceeds to process that XL file and get out some specific information to fill into another XL file.
That works fine so far.
The challenge I'm facing now is, I don't know how VBA identifies the Outlook_account to search - I assume it is the one associated with the current logon, the personal one. It's "easy" on machines where there is only one postbox available.
<=> On the machines where this is supposed to run (in one of the dpts in our company), there is a "team_postbox" in additional to the personal postbox that everyone has and the email to search for arrives daily in that team_postbox.
=> Can you tell me how I can specify in the code that the macro should look in that (one of two Outlook_accounts available on the machine)?
Thanks a lot!
Best regards,
Officer_Bierschnitt
P.S.: OK, there seems to be a way to find out the ID of one of several Outlook_accounts available on a machine.
The code to find out about this can be found at
http://www.rondebruin.nl/win/s1/outlook/account.htm
I will try this out as soon as I can visit that guy and log on to his account to try this and then I'll come back to you.