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
The project was working fine earlier today. I haven't changed the drive letters involved, and the autosave files also hang it. I've tried importing the project into a new project, as well as copying the proj file somewhere else, renaming the folder w [More]
Hello, Could someone make me to understand how the trace files available in trace location of 11g database(dump location in 10g or below)are having permission 640 in some databases and 660(UNIX flavored systems) . As these are the files getting creat [More]
Hi, Recently we have changed the company name in ECC system but this new name didn't reflect in SRM system. Upon investigation we found that system has already captured this name in table BBP_ATTR_VALUE_T. Is there any standard program that needs to [More]
H Guys, I am very new user, I had posted nearly 10 to 15 Questions in the Forums. And got ans for few. But when navigate to "Your Control Panel" I cannot see all my questions posted in this form. Please help me search, all my questions that I ha [More]
Pls solve this problem as soon as possibleThese are user-to-user support forums, so no one here can do anything for you in regards to this issue. I don't know what you mean by a "smart call app", but if you purchased a gift directly from the iTu [More]
i have a ipad2 and can only connect to the internet on safari but not any WiFi related apps such as YouTube or Facebook. plz help.Try changing the channel in use in case you're getting interference.  If you have WEP enabled on the Internet Sharing it [More]
Every time I use iCal, my computer says, "The server responded with "502" to operation CalDAVAccountRefreshQueueableOperation." Please help!!Same here....didn't see it within the first couple weeks of iCloud, but yesterday it popped up [More]
Two options for creating an object within a certain class are to directly instantiate or use a factory: A a = new A(); or A a = MyFactory.getA(); The supposed advantage of using the factory is that the factory can return A or any subclass of A. But h [More]
Could someone point me to the page that explains what the batch monitor log is saying? Status: Failed - 3x crash service down (This seems odd since I don't have a server and am using the This Computer option. or ?xml version="1.0" encoding=" [More]
Hi , is it possible to write a static URL in a portal application . I mean that http://www.myportal.com is static in my portal application. I search and f?nd out simlify URL topic but actually ? think it is not exactly appropriate for my problem.Have [More]