I'm trying to learn how to use the Outlook 2007 object to add a new e-mail account.
I've seen that this can be done without VBA using a PRF file, but I'm looking to learn more about the Outlook Object library and how it works.
So "simple" question: How do I use Outlook VBA to create an account (which maybe doesn't support a password, but oh well.)
More background: I've spent hours digging through the Outlook.Application object trying to figure out how to add an account. I see that I can look at the existing ones through Outlook.Application.Session.Accounts, but I haven't found out how to add one. I was hoping to simply take an existing one, store it in an account object and somehow append it, but the properties all seem to be read-only.
Any idea how to add an account to a particular "Store" (which I guess is the Outlook name for a folder like Personal Folders.