
VBA - Create Outlook Profiles - Can it be done!
You can manipulate profiles in VB or VBA using ProfMan library which comes with
a distributable version of Redemption (http://www.dimastr.com/redemption/ ,
click "Profiles"). However in your case it does not look like even Extended MAPI
will help - POP3/SMTP provider in Outlook is not strictly MAPI compliant, a lot
of information is shared between Outlook and OE. In Outlook 2002 POP3/SMTP
provider is not exposed to Extended MAPI at all and there is no API to
manipulate it (one of quite a few things Outlook 2002 broke).
You could directly change the registry bits, but in this case for the changes to
take effect, you'd need to restart Outlook.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
Quote:
> Hi,
> I've been looking on the Slipstick website for code to create an Outlook
> Profile using VBA, but all the references seem to suggest a need for
> Visual C++
> is this true or can it be done from Access 97 using VBA?
> All I need really is to change the Name and Email Address of the Profile as
> the pop and smtp info remain the same. Can this info be changed without the
> need to edit the profile?
> reason for all this is because we send emails on behalf of our clients and
> need the email address to reflect this.
> Thanks
> Jado