+ Reply to Thread
Results 1 to 2 of 2

Using VBA to send Email by selecting email from a cell within a worksheet

  1. #1
    Registered User
    Join Date
    09-27-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    14

    Using VBA to send Email by selecting email from a cell within a worksheet

    Hi,

    I am currently using the following code to send my excel workbook in an email.

    *ActiveWorkbook.SendMail Recipients:="[email protected]"

    But I have to write an email address in the code. I would like it to be picked up from a cell within the worksheet. I have also tried

    *ActiveWorkbook.SendMail Recipients:=range("A1").select (This cell contains the email address where the email needs to go) but it is not working. Can I get some suggestions on how to make it work please so that I enter an email address in the sheet and use the macro to pick that email address automatically.

    I will appreciate your help.

    Regards,

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Using VBA to send Email by selecting email from a cell within a worksheet

    Hi,

    Just leave out the ".Select"
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Send New Email W/ Body of Received Email, Then Delete Sent Email
    By edneal2 in forum Outlook Formatting & Functions
    Replies: 2
    Last Post: 07-01-2013, 12:45 AM
  2. send selected range in email with default outlook email signature included
    By mdsickler in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-04-2013, 10:50 PM
  3. 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
  4. Replies: 5
    Last Post: 12-17-2012, 05:10 PM
  5. Script to Send a Single Worksheet from a Workbook via Email Based on a Cell Value
    By cstavr1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2012, 04:00 PM

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