+ Reply to Thread
Results 1 to 6 of 6

Method 'To' of object '_MailItem failed

  1. #1
    Forum Contributor
    Join Date
    03-04-2014
    Location
    calgary, canada
    MS-Off Ver
    Excel 2013
    Posts
    108

    Method 'To' of object '_MailItem failed

    Run-time error '-2114715382 (81f4010a)':
    Method 'To' of object '_MailItem failed

    this is the error message i am getting on this code - BUT only on one laptop. this code is used by multiple people using different office versions and different operating systesm (7 and 8.1). i am highlighting the line where the code stops. any suggestions would be great. the specs of teh laptop that this error is occuring on are - windows 8.1 and office 2013

    Please Login or Register  to view this content.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Method 'To' of object '_MailItem failed

    One idea... in the VBEditor check the Tools > References in a computer where it is working correctly and make sure the laptop has the same refs.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    03-04-2014
    Location
    calgary, canada
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: Method 'To' of object '_MailItem failed

    will do that now thanks Jerry

  4. #4
    Forum Contributor
    Join Date
    03-04-2014
    Location
    calgary, canada
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: Method 'To' of object '_MailItem failed

    so the references were the same. what i did was add .text to the end of the .to line

    Please Login or Register  to view this content.
    and now it is working

  5. #5
    Registered User
    Join Date
    11-22-2016
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    2016 Professional
    Posts
    5

    Re: Method 'To' of object '_MailItem failed

    The same error was happening to me when trying to send a mail based on information inside a UserForm.

    The function for the e-mail was receiving the textboxes as parameter, and not their value (e.g: TxtBox.Value instead of simply TxtBox).

    Remember to always pass the specific property and it should work fine!

  6. #6
    Registered User
    Join Date
    08-20-2020
    Location
    New York
    MS-Off Ver
    2013
    Posts
    1

    Re: Method 'To' of object '_MailItem failed

    Thank you for your help. I was getting the same error but with the Method 'Subject' of object. This helped me greatly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Method 'Run' of object '_Application' failed
    By brl8 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-21-2015, 04:27 AM
  2. [SOLVED] Method range of object failed
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-02-2013, 06:55 AM
  3. Object error - method failed
    By okriskao in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2009, 02:02 AM
  4. Method Add of object Sheet failed
    By JonMitsu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2006, 03:29 AM
  5. Replies: 0
    Last Post: 09-12-2005, 09:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1