Outlook does not recognize one or more names

Status
Not open for further replies.
U

UmFodWw

I am having an issue where when I override default reply mail and give

Response.To as some Outlook user name, I get an error which says "Outlook

does not recognize one or more names"

On further research I found that when there are identical names in outlook

i.e. for eg. Tyson, Mike and Tyson, Mike C then this issue occurs and for

rest other it works just fine. Outlook searches for all similar name though I

want it to pick only the exact name i.e. Tyson, Mike and not anything else.

We have stored the name Tyson, Mike in global variable and we pass it to

Response.To in Outlook code

Now, how do we make outlook send mail as it is and not look for multiple

similar names from Global Address List?

Code Snippet:

Sub Approved_Click()

On Error Resume Next

strAnswer = msgBox("Are you sure you want to Approve this form?",vbYesNo,

"Attempting to Send...")

if strAnswer = 6 Then

Application.ActiveInspector.CurrentItem.DeleteAfterSubmit = True

item.forward

If err.Number = 0 Then

Item.UserProperties("IncStatus").value="Response"

item.reply

End If

End If

If err.Number<>0 Then

strAnswer = Msgbox("Data Error occurred

"&Err.description,vbWarning,"Form - Error")

On Error GoTo 0

Exit Sub

End if

End sub

Function Item_Reply(ByVal Response)

Response.To = Item.UserProperties("Assocname").Value

End Function

Item.UserProperties("Assocname").Value=item.SentOnBehalfOfName is the code

for assigning value in Assocname.

Any help in this regard will be really appreciated.

Thanks,

Rahul
 
Answered at

http://www.outlookcode.com/threads.aspx?forumid=2&messageid=29591

Sue Mosher

"Rahul" <Rahul> wrote in message

news:61D662EB-DAB7-4116-B129-E7DD34D1463E@microsoft.com...
> I am having an issue where when I override default reply mail and give
> Response.To as some Outlook user name, I get an error which says "Outlook
> does not recognize one or more names"

> On further research I found that when there are identical names in outlook
> i.e. for eg. Tyson, Mike and Tyson, Mike C then this issue occurs and for
> rest other it works just fine. Outlook searches for all similar name
> though I
> want it to pick only the exact name i.e. Tyson, Mike and not anything
> else.

> We have stored the name Tyson, Mike in global variable and we pass it to
> Response.To in Outlook code

> Now, how do we make outlook send mail as it is and not look for multiple
> similar names from Global Address List?

> Code Snippet:

> Sub Approved_Click()
> On Error Resume Next
> strAnswer = msgBox("Are you sure you want to Approve this form?",vbYesNo,
> "Attempting to Send...")
> if strAnswer = 6 Then
> Application.ActiveInspector.CurrentItem.DeleteAfterSubmit = True
> item.forward
> If err.Number = 0 Then
> Item.UserProperties("IncStatus").value="Response"
> item.reply
> End If
> End If

> If err.Number<>0 Then
> strAnswer = Msgbox("Data Error occurred > "&Err.description,vbWarning,"Form - Error")
> On Error GoTo 0
> Exit Sub
> End if
> End sub

> Function Item_Reply(ByVal Response)
> Response.To = Item.UserProperties("Assocname").Value
> End Function

> Item.UserProperties("Assocname").Value=item.SentOnBehalfOfName is the code
> for assigning value in Assocname.

> Any help in this regard will be really appreciated.

> Thanks,
> Rahul
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
C bcm 2010 download does not recognize outlook Using Outlook 3
M "Attachment Detacher for Outlook" add in, does it update the server copy of the email? Using Outlook 1
J Event/Meeting in Outlook Does Not Align with SharePoint Calendar Using Outlook 5
C Why does Outlook (desktop) 365 for Windows keep making me input my passwords? Using Outlook 12
V Outlook 2016 Does Outlook-2016 (64 bit) work with iCloud for Windows ? Using Outlook 5
T Why does outlook 2010 convert only some forum notifications to plain text? Using Outlook 0
M Outlook .com group does not show up in Outlook for office 365 home Using Outlook 3
W Outlook Calendar does not save view any longer! Using Outlook 3
B Outlook 2016 Does not Shutdown Correctly Using Outlook 3
P Desktop doesn't index Outlook IMAP files, laptop Outlook does index those same IMAP files Using Outlook 2
J Outlook 2016 message content does not display - outlook.com; exchange Using Outlook.com accounts in Outlook 9
D Outlook 2016 IMAP Connection Returns All Email but outlook.com does NOT Using Outlook.com accounts in Outlook 2
D Outlook 2016: /altvba startup switch does not work Using Outlook 2
S Outlook does not open the .pst file created by the Outlook Using Outlook 5
O Windows 10 x64 Outlook 2013 - URL does not open (anymore) Using Outlook 3
M How does Outlook determine item numbers in a folder? Outlook VBA and Custom Forms 3
C Unchecking "Send immediately when connected" does not work on apps that call Outlook Using Outlook 1
J Outlook 2010 VBScript editor does not run code at all Outlook VBA and Custom Forms 0
G Outlook does not show new appointments in To-Do-Bar Using Outlook 0
A Does Outlook import Gmail Archive? Using Outlook 1
1Firefly Outlook 2013 Converstation preview does not show my last reply Exchange Server Administration 1
T outlook 2013 does not mark multiple forward messages as forward Using Outlook 2
C Outlook 2013 - Email Gets Sent - But Does Not Move From Outbox to Sent Box Using Outlook 4
M does outlook 2013/365 on mac support custom forms? Outlook VBA and Custom Forms 1
H Outlook.com calendar does not update from Outlook 2013 Home Premium Using Outlook 1
M Incoming invites to my imap account does not sync to outlook.com Using Outlook.com accounts in Outlook 29
L Outlook 2007 does not start with Apple iCloud-Add-In activated Using Outlook 2
S Outlook 2013 To Do Task does not minimize. Using Outlook 0
D Outlook 2013 deletes emails, does not send them to Deleted Items or Trash Using Outlook 2
O Outlook 2010 does not open MS Word attachments Using Outlook 1
A File - Save Attachments does nothing in Outlook 2003 with Exchange 2010 ... Using Outlook 3
K Outlook 2007 Calendar - Time spinner does not function correctly Using Outlook 1
M Outlook Appointment item does not show the item outside the date range Using Outlook 2
H Reocurring outlook appointment (office 2010) does not update Outlook.com Using Outlook 3
F Outlook 2010 contact e-mail Display as: does not show contact name Using Outlook 2
P Reply All does not work in Outlook 2010 Cached mode Using Outlook 4
R Outlook 2013 does not show in default programs - how do I search Using Outlook 1
U How does outlook desktop work with outlook.com Using Outlook 5
V Outlook Calendar No Reminders Show up but does on iPhone Using Outlook 0
V Outlook Calendar No Reminders Show up but does on iPhone Using Outlook 2
Fozzie Bear How does Outlook 2003 deals with IMAP configuration Using Outlook 8
J Does Outlook 2003 run on Windows 8 Professional? Using Outlook 2
E Does Outlook indexing work across multiple servers? Using Outlook 0
E Does Outlook 2010 support searching multiple .pst files simultaneously? Using Outlook 0
J Outlook 2003 does not send or receive imap mail from server Using Outlook 0
E Double clicking on from email address does no longer open corresponding contact in Outlook 2007 Using Outlook 7
S Compiler Error: Does not like Outlook.CommandBarControls.CommandBarControlPtr.Add Outlook VBA and Custom Forms 1
T Outlook's button 'Attach File' does not work Outlook VBA and Custom Forms 7
N why does vb not recognise outlook code? Outlook VBA and Custom Forms 1
D Why does BCM not always load when I restart Outlook? BCM (Business Contact Manager) 1

Similar threads

Back
Top