+ Reply to Thread
Results 1 to 4 of 4

How to e-mail selected row and use e-mail address in a cell to send e-mail from excel

  1. #1
    Registered User
    Join Date
    12-09-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    13

    Smile How to e-mail selected row and use e-mail address in a cell to send e-mail from excel

    Hi can anyone help with this code:

    I'm trying to make the macro add the e-mail address from the H column to the "To" part of outlook, and then copy the data of that row from E16:G16 to the body of the e-mail.

    I've tried adapting this code but no error shows up for me and nothing displays to show if it working or not. I'd be really glad if u guys could come back to me really quick, thanks in advance

    Please Login or Register  to view this content.
    Last edited by syedalamgir; 12-27-2010 at 02:11 AM. Reason: To put on code correctly

  2. #2
    Forum Guru jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to e-mail selected row and use e-mail address in a cell to send e-mail from e

    Hi syedalamgir

    Be glad to help if I can. Post a copy of your file with code and I'll see if I can debug it.

    John
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    12-09-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: How to e-mail selected row and use e-mail address in a cell to send e-mail from e

    Thank you for getting back to me so quick Jaslake

    As you can see I've been up long into the night trying to solve this. I am glad to say I have solved it.

    I have attached the spreadsheet for everyone else to use if they have the same problems so they can use to solve theirs.

    I used Ron de Bruin's links to help with the coding with some minor adjustments from the following link :http://www.rondebruin.nl/mail/folder3/message.htm

    My spreadsheet is protected and I've tried to unprotect it before putting it on here but even though i've done that it still seems to automatically protect soon as data is entered in cells. If you do want unporotect the cells go into View code from right clicking the tab "Students booked for CBT" and you'll see a code in there that has the password. its quite obvious if you look for it. If you can't find do message me I'll be glad to help.


    This is an awesome forum, its been unbelievably helpful for me for this project.

    The only issue i have with my spreadsheet is that it runs a little bit slow when I choose automatic calculation but leaving it on Manual does speed it up. Would you know Jaslake is it due to my non-efficient coding, and can it be improved..

    Actually the forum won't let me attach my sheet i've also tried zipping it but doesn't let me upload. If anyone does want to get a hold of my sheet do message. In the mean time i have provided the code for the e-mail that code worked for me;

    Please Login or Register  to view this content.
    Thanks again for getting back to me asap Jaslake
    Last edited by syedalamgir; 12-27-2010 at 02:15 AM. Reason: Editing Code

  4. #4
    Forum Guru jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to e-mail selected row and use e-mail address in a cell to send e-mail from e

    Good for you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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