+ Reply to Thread
Results 1 to 7 of 7

Email Cell Range via Excel

  1. #1
    Registered User
    Join Date
    02-18-2004
    Posts
    55

    Email Cell Range via Excel

    My VBA skills are very limited and I'm hoping to get some help from the more advanced users out there.

    I have a spreadsheet that that will be used as a provisioning checklist. As the tasks in each section are completed in the checklist, I placed Form_Button at the end of that section that I'd like to use to automate an email with contents from a few concatenated cells.

    As my reference I'm using this MS article: http://support.microsoft.com/kb/816644
    (NOTE: I'm using this code almost exactly as it's posted, I've only changed the email to field and the range to pull from)

    Problem is, the code isn't sending the range specified, it sends a badly formatted version of all cells in the worksheet.

    Ideally I'd like to have the spreadsheet help automate the steps of the provisioning process. I have everything in place, I just need this last piece (VBA email macro) to send an email with the information inside a couple of cells. (Note: the cells are just a concatenated formula summarizing key points).

    Any help someone can provide is greatly appreciated.

    (NOTE: I'm using Excel 2013)

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,923

    Re: Email Cell Range via Excel

    Look at this link.

    http://www.rondebruin.nl/win/s1/div/mail4.htm
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    02-18-2004
    Posts
    55

    Re: Email Cell Range via Excel

    Alansidman,
    Thanks for the response. I tried that link as well, but didn't have any luck. Since I'm only sending a cell it errors saying the source is not a range or cells are hidden. Plus, it seems to be a lot more involved them what I'm looking for. I just want a quick snip of VBA code that will look at the contents of a cell and email it to a defined address. Very simple, but prooving to not be easy. If anyone has any ideas or can provide any help, I'd greatly appreciate it...

    NOTE: I am a VBA newbie

  4. #4
    Registered User
    Join Date
    02-18-2004
    Posts
    55

    Re: Email Cell Range via Excel

    Alansidman,
    Thanks for the response. I tried that link as well, but didn't have any luck. Since I'm only sending a cell it errors saying the source is not a range or cells are hidden. Plus, it seems to be a lot more involved them what I'm looking for. I just want a quick snip of VBA code that will look at the contents of a cell and email it to a defined address. Very simple, but prooving to not be easy. If anyone has any ideas or can provide any help, I'd greatly appreciate it...

    NOTE: I am a VBA newbie

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,923

    Re: Email Cell Range via Excel

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  6. #6
    Registered User
    Join Date
    02-18-2004
    Posts
    55

    Re: Email Cell Range via Excel

    Thanks, I've created a very basic spreadsheet of what I'm looking to accomplish. Basically it's a checklist of items. Once those items are complete, there is a Button that I would like to use that will automatically send an email to helpdesk to open a ticket. The message body of that email will contain the text from a specific cell that is a concatenated formula.

    So for instance, in the attached spreadsheet. Somone would fill in the customer name and info...Do the tasks, then click the button to send an email with the message body containing the contents of cell E4.

    I'm sure it's very basic, but I'm VBA impaired and could use the assistance. Thanks in advance.
    Attached Files Attached Files

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,923

    Re: Email Cell Range via Excel

    try this. Copy and paste into the VBE. Note you will have to change the lines highlighted in RED

    Please Login or Register  to view this content.
    I just modified Ron Debruin's code for your particular case. This also assumes you are using Outlook.

+ 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. [SOLVED] how to make range of cell A14:q14 and cell selected in to email vba code issue
    By sspreyer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-23-2013, 12:06 PM
  2. Problem using loop for sending excel range in email body using Range to HTML code
    By drajanm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-24-2012, 03:17 AM
  3. [SOLVED] sending Email (via outlook) from Excel with cell range and image from external file
    By Kramxel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-20-2012, 11:10 AM
  4. address a new email to recipients gotton from an excel cell range
    By tommes9000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-11-2012, 11:47 AM
  5. Email range from all worksheet with email address in cell
    By kevinarp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-20-2012, 05:03 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