Sitemap

Amicuk Programming Answers

VBA Outlook Email Failing: "Outlook does not recognize one or more names"

2015-10-11   Views:8

Advertisement

I use VBA code to send emails from within Microsoft Project 2010 Standard to notify task owners of task status.  This code has been working fine until the last couple of weeks.  Now I get the error "Outlook does not recognize one or more names".

I use VBA code to send emails from within Microsoft Project 2010 Standard to notify task owners of task status.  This code has been working fine until the last couple of weeks.  Now I get the error "Outlook does not recognize one or more names". 
The VBA code sends email to each addressees internet address.  I am referencing the Microsoft Outlook 14.0 Object Library.
I deleted the "suggested contacts" entries in my address book to no avail. 
Below is the key snipit of code I am using.  I get the error when the ".Send" line is executed.
When I check OutMail.To, .CC, etc everything looks fine.
Any suggestions would be greatly appreciated.
Dim OutApp As Object
    Dim OutMail As Object
    Set OutApp = CreateObject("Outlook.Application")
    Set OutMail = OutApp.CreateItem(0)
    On Error GoTo BadOutlookMail
   ' Change the mail address and subject in the macro before you run it.
    With OutMail
        .To = vTo
        .CC = vCC
        .BCC = vBCC
        .Subject = strSubject
        .Body = strBodyText
    End With

The replay answer
Advertisement
Hi,
I'm glad to hear your problem has been resolved by yourself, I hope this thread will hope other users who may come up against the same problem.
Thank you for sharing your experience here with us.
Regards,
Melon Chen
TechNet Community Support

Go to See the other 3 answers

VBA Outlook Email Failing: "Outlook does not recognize one or more names"

Category:DefaultRelease time:2015-10-11Views:130

I use VBA code to send emails from within Microsoft Project 2010 Standard to notify task owners of task status.  This code has been working fine until the last couple of weeks.  Now I get the error "Outlook does not recognize one or more names".[More]

LC ES4 form in Adobe Reader DC: "MS Office Outlook does not recognize ","...*

Category:DefaultRelease time:2015-10-11Views:130

I have a form created in Adobe Live Cycle Designer ES4 with extended rights leveraged in Acrobat Pro 11. The form uses an array to store a number of e-mail addresses. When a user selects a name in another field the e-mail address is 'subtracted' from[More]

Microsoft Outlook does not recognize "@".

Category:DefaultRelease time:-0001-11-30Views:130

A user with Outlook 2010 running on Office 365 has begun getting an error message whenever he replies to or forwards an email from Outlook.   The error message is: Microsoft Outlook does not recognize "@". He then must select a username from the[More]

"Check Names: Microsoft Outlook does not recognize '1. double click the attachment'" submit error

Category:DefaultRelease time:-0001-11-30Views:130

I have seen this question/issue on multiple forums and nobody seems to have an answer/fix yet.  I included an e-mail submit button for my form, and when I practice submitting, everything sends fine.  However, if I distribute the form (to allow for tr[More]

Shared Review - Microsoft Outlook does not recognize recipients

Category:DefaultRelease time:-0001-11-30Views:130

Hello! I am using Adobe Acrobot 9 Pro to try for a Shared Review of a document. I get as far as selecting people to send the document to. I click the "To" button which then goes into my companys Outlook contacts, and then after selecting a name[More]

TS3988 I have no trouble with email but IPhoto will not recognize my server when I try to send a photo to a friend. Anyone else have this probelm ...a solution??? N

Category:DefaultRelease time:-0001-11-30Views:130

I can email but IPhoto does not recognize my server to enable me to send email photos. Any advice?  NI've been having this problem too, but here's the catch: originally it was only with my dad, and only sometimes.  Now it's dad and husband, every tim[More]

I just downloaded AOL Desktop 1.7 for Mac and I can't get my email to work. It welcomes me but I know I have new email but it doesn't recognize that I have ANY mail at all. HELPPPPPPPP Please

Category:DefaultRelease time:2015-10-11Views:130

i just downloaded AOL Desktop 1.7 for Mac and I can't get my email to work. It welcomes me but I know I have new email but it doesn't recognize that I have ANY mail at all. HELPPPPPPPP PleaseHey I've been all over and can't get any help. I'm well awa[More]

Changed my Apple ID email, but ICloud does not recognize my new login, only my old one (which is now non-existent) HELP!

Category:DefaultRelease time:2015-10-11Views:130

Changed my Apple ID email, but ICloud does not recognize my new login, only my old one (which is now non-existent) and requires the password to do anything. Everytime I go onto the ICloud  page it shows my old email and requires the password, but I c[More]

Send Email Fail... SOLVED! WVC80N

Category:DefaultRelease time:-0001-11-30Views:130

I bought this camera yesterday to monitor the entrance to my house, and in case anyone decided they wanted to break in and take anything, I would have them caught on video.  All I wanted this camera for was so that I could monitor my house from the r[More]

Auto-Setup Emails Fail with kGotAuthenticationFailure

Category:DefaultRelease time:-0001-11-30Views:130

If I set up my people with a shortname of "first.last", the auto-setup email fails to work when they click the setup button with "kGotAuthenticationFailure." I do the dot in the shortname to facilitate more organized email addresses. I[More]

Form email fails if SSESSION.kt_surname_usr contains two words????

Category:DefaultRelease time:-0001-11-30Views:130

This is a really strange one. We have a pretty standard insert form for an Event Booking System. Included in that booking form is an auto generated email using the 'Surname' of the logged in user {SESSION.kt_surname_usr} IF the user originally regist[More]

Hot
Anyone know how to stop Mail from automatically opening and displaying attached pdfs, jpgs and other such filetypes when displaying a mail message either in the preview or the main reading pane? If you work with 5meg pdfs a lot then this gets very te [More]
I have the 4th Gen Ipod touch. I was using it after it had been saying 20% battery remaining for awhile. I locked the screen, then I tryed to press the power button again to unlock it but it wouldn't work. I automatically assumed it had died complete [More]
i have a pageitem textbox called SearchBox , a Button called Search and a Display Image called Image i to display and image upon inserting an ID into the searchbox. It work alright if i put a static ID in the BLOB Column returned by SQL statement in [More]
Hello, I need to identify the Bill-to and Ship-to partner in the account assignment for a vendor.  Can someone please explain how to go about doing this? Thank you, JR?? Vendors ship to us...we're the bill-to, ship-to from their Sales Order viewpoint [More]
hello, In a word document, I have created several styles for paragraphs. In my application, I create a CNiWordDocument object and I want to set the style for the current paragraph. How to use the function : setProperty? Thank you very much.Hello Cyri [More]
It is slower and the lasso tools don't work as well as beforeFirst, report problems with MacOS 10.10 to Apple so they can get the information they need to solve the problems introduced in MacOS 10.10. Second, make sure FileVault is off (a few people [More]
제품 : GATEWAY 작성날짜 : 1999-04-27 how to install the gateway for MS SQL server Software 요구 사항: Operating System:      Windows NT 4.0 Oracle Server:           Oracle8 Server Enterprise Edition Version 8.0.4.0.0 Oracle Networking:     On gateway:     Net8 [More]
Hi, I have a problem in customizing the sap providing work protect mode. When I activate the work protect mode, a pop up is coming up and the default radio button selected is to open the unsaved data in a new window. Can you please let me know can we [More]
I am in the U.S. But Ibooks still crashes every time I try to open it. I tried reinstalling several times as well as shutting power off. Help!I had THE Same problem overhere...it started after I downloaded 13 free books from THE ibooks store. I had t [More]
Hi, In ECM job pricing, is is possible to compare SAP positions with jobs from the survey provider. Any suggestion....hi typically you would want to compare SAP jobs with Survey Vendor Jobs. when you get your compsite results , you can compare your s [More]