A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

how to get Exchange server?



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old January 13th 06, 07:07 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 9
Default how to get Exchange server?

Can someone post the code (in it's entirety) to determine the Exchange
server that the current logged on user belongs on?

I've tried all the CDO code snippets on the web (which are all the
same), but whenever I run it I always get the same error:

[Collaboration Data Objects - [E_INVALIDARG(80070057)]]

I'm running this on Outlook 2003 (yes I have CDO installed) from an
Outlook form. Our backend is Exchange 2003 SP1.

The actual code it always chokes on is:

strHomeServer =
objSession.GetAddressEntry(strUserID).Fields(PR_EM S_AB_HOME_MTA)

Yes, I've also tried adding in the hex code directly (&H8007001E).

Yes, I did the session logon first. Although when I first ran it just
using the code snippet I found it worked! And the code never defined
what objSession was. Since then I did some changes and now I can't get
it to work.

I just don't get it.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
WHAT IS A MICROSOFT EXCHANGE SERVER lender lady Outlook - Calandaring 1 March 4th 06 02:41 AM
exchange server ooa aps05 Outlook - Installation 8 February 10th 06 11:03 PM
Migrating to Exchange Server Mass Joe Outlook - General Queries 5 February 7th 06 04:31 PM
Moving from one Exchange Server to another... Dave Outlook - Installation 1 January 28th 06 05:57 AM
cant connect to exchange server Clyde Outlook - General Queries 1 January 20th 06 11:51 PM


All times are GMT +1. The time now is 08:44 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.