Link to home
Start Free TrialLog in
Avatar of Andy Brown
Andy BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Moving from Outlook to Exchange

I have a function (within VBA) that links to a folder in an Outlook inbox and reads the email subjects.  However, we are now migrating to MS Exchange running on our local server and I cannot connect.

My current, local string is below, but I could really do with some help converting it for Exchange.
Dim ADOConn As ADODB.Connection
Set ADOConn = New ADODB.Connection

With ADOConn
.Provider  = "Microsoft.Jet.OLEDB.4.0"
.ConnectionString ="Exchange 4.0; MAPILEVEL=Personal Folders|Inbox\CompanyName\;PROFILE=OUTLOOK;DATABASE=C:\Users\UserName\AppData\Local\Temp\;"
End With

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of puppydogbuddy
puppydogbuddy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Andy Brown

ASKER

Thanks - as always (hope you are keeping well).  I'll give it a try tomorrow at some point.
Great stuff - I got there in the end.
Avatar of puppydogbuddy
puppydogbuddy

Glad I could help.  Thanks for the points and grade.