The Outlook valid username cannot be resolved

The Outlook valid username cannot be resolved

Post by cGFyZXN » Fri, 25 Dec 2009 13:22:01


Hi,

I am using below code to resolve the "userName". It works absolutely fine
for 99% users. but it cannot resolve some of our users. Could anyone please
suggest what could be wrong? I am not sure but it has to do something with
their stored Outlook information?


Set rcp = Application.Session.CreateRecipient(userName)
rcp.Resolve

If rcp.Resolved = True Then
MsgBox "User " & """" & userName & """ could not be resolved."
End If

Thanks.
 
 
 

The Outlook valid username cannot be resolved

Post by cGFyZXN » Fri, 25 Dec 2009 16:58:01

I forgotten to NOT in if statement, Rest is same.

If NOT rcp.Resolved = True Then
MsgBox "User " & """" & userName & """ could not be resolved."
End If

Couldn't find anything useful yet.

 
 
 

The Outlook valid username cannot be resolved

Post by cGFyZXN » Fri, 25 Dec 2009 19:58:01

I think the below might be the reason? It happens when I have below type of
user name entries. When I try to resolve "foo, user", it doesn't get resolved
but "foo, user(dept1)" gets resolved successfully.

foo, user
foo, user(dept1)

Please note that both of above users are different. Do you think any
connection with these entries and naming resolution?

Thanks.
 
 
 

The Outlook valid username cannot be resolved

Post by cGFyZXN » Fri, 25 Dec 2009 20:26:01

I think the below might be the reason? It happens when I have below type of
user name entries. When I try to resolve "foo, user", it doesn't get resolved
but "foo, user(dept1)" gets resolved successfully.

foo, user
foo, user(dept1)

Please note that both of above users are different. Do you think any
connection with these entries and naming resolution?

Moreover, I tried doing it from Outlook look up but I didn't see any
difference. For example, when I copy "foo user" in To list, and press Cntl+K,
it gives me pop-up for selecting between "foo user" and "foo user(dept1)".
The same pop up appears when I do look up for "foo user(dept1)". Not sure
where is the issue. I might need to check how resolve query works.

Thanks.
 
 
 

The Outlook valid username cannot be resolved

Post by Michael Ba » Sun, 27 Dec 2009 17:59:48


Are you the same Paresh I asked multiple times yet to post programming
questions in the *.program_vba group? Please do so.

--
Best regards
Michael Bauer - MVP Outlook
Manage and share your categories:
< http://www.yqcomputer.com/ ;


Am Wed, 23 Dec 2009 20:22:01 -0800 schrieb paresh:

please