+ Reply to Thread
Results 1 to 2 of 2

Using VBA to send email from cell

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Using VBA to send email from cell

    Hi all, I have some code which sends an email to the address stored in cell U8

    If the email address is typed, it works fine. If it is entered as a formula using a lookup to find the email address it fails.

    Any help with this as it seems quite illogical?

    The code snippet is below


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Using VBA to send email from cell

    Hi,

    The value in 'U8' must be a valid Email Address.
    Try some intermediate code to try to debug.
    For Example (not tested):
    Please Login or Register  to view this content.
    If there are embedded spaces or no @ sign in the Email address you will probably get a failure.

    Good Luck

    Lewis

+ 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. Button to Send email & auto add email address from cell
    By TheNerdyGeek in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2019, 02:43 PM
  2. Condition on sendint email or not to send email by a yes no in a cell
    By toofani in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2015, 04:35 AM
  3. Workflow with signatures (if cell=x then send email, if signed then send email)
    By Kate2811 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-25-2014, 05:37 AM
  4. How to send email from excel using VBA with Cell Range (Including Images) as Email Body
    By Novice_To_Excel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2014, 05:06 AM
  5. Using VBA to send Email by selecting email from a cell within a worksheet
    By sm.salford in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2013, 01:58 PM
  6. Auto send email with the cell value that triggered the email in the first place.
    By coobey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-02-2013, 05:40 PM
  7. Send Email When Cell Value Changes
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-18-2006, 10:30 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