+ Reply to Thread
Results 1 to 9 of 9

Email a screenshot of a specifc row in an email to a specfic email address

  1. #1
    Registered User
    Join Date
    08-15-2015
    Location
    Dallas
    MS-Off Ver
    2014
    Posts
    8

    Email a screenshot of a specifc row in an email to a specfic email address

    Hello, for starters, I am a novice. Not a beginner, but a novice. I dabble.

    Ok, this might be a bit confusing, but here goes... I have a spreadsheet that I produce every two weeks for payroll to determine how much to pay my employees. I would like to send a screenshot of a single row (and a header) to each of my employees of their specific (and only their) commission and other pertinent information. The row of information that I send should only go to the email address in that row, since the information is private to each employee.

    THis is what the table looks like:
    screenshotttttt.jpg


    I have the following piece of code (at the bottom) that I have used in the past to take a snapshot of a static couple of rows and open an email in outlook for me. But I dont know how to make that cut out dynamic (change based on who the email will go to). Also, I then must write the recipient in the to: field and then click send. This would work, but I would like to use just the header and the row of the respective email address. (meaning, I don't want Alexis to see information for anyone else...only her. and I don't want Sarah to see anyone elses information, only hers.) Also, I dont need to send to everyone, only a few of the employees, so, perhpas If I had a column that i put a checkbox in, or the letter "y" for yes and only send to those employees.

    So an example ofthe end result that I am looking for is for me to do the following:
    1.) put a "y" in column "O" for Alexis, Bianca and Shannon. (Row 2,4,5)
    2.) Run a macro
    3.) Have 3 emails generated (or automagically sent) as the following:
    3a.) An email to [email protected] that says: Hello Alexis, here are your numbers for this pay period. And then paste the Header (A1:L1)and also the data (A2:L2)
    3b.) A separate email to [email protected] that says: Hello Bianca, here are your numbers for this pay period. And then paste the Header (A1:L1)and also the data (A4:L4)
    3c.) And another email to [email protected] that says: Hello Shannon, here are your numbers for this pay period. And then paste the Header (A1:L1)and also the data (A5:L5)

    Here is what the email might look like:
    Screen emails.jpg


    And here is the code I used to make that email:
    Please Login or Register  to view this content.
    Any help is appreciated!!
    Attached Images Attached Images
    Last edited by Cobra75007; 08-15-2015 at 11:24 PM. Reason: added code brackets

  2. #2
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: Email a screenshot of a specifc row in an email to a specfic email address

    Hi

    Please put code between tag [CODE ] ... [/CODE ] (Remove space between E & ] while posting code.)

    Cheers!!

  3. #3
    Registered User
    Join Date
    08-15-2015
    Location
    Dallas
    MS-Off Ver
    2014
    Posts
    8

    Re: Email a screenshot of a specifc row in an email to a specfic email address

    updated code with code brackets. sorry :-(



    And here is the code I used to make that email:
    Please Login or Register  to view this content.
    Any help is appreciated!!
    Last edited by Cobra75007; 08-15-2015 at 11:25 PM.

  4. #4
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: Email a screenshot of a specifc row in an email to a specfic email address

    no problem..here you go..

    Download this file & code is as below ..

    Please Login or Register  to view this content.
    Cheers!!
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: Email a screenshot of a specifc row in an email to a specfic email address

    Hi

    Did this helped?

    Cheers!!

  6. #6
    Registered User
    Join Date
    08-15-2015
    Location
    Dallas
    MS-Off Ver
    2014
    Posts
    8

    Re: Email a screenshot of a specifc row in an email to a specfic email address

    Hi! I finally got a chance to test this! It works perfectly!!! thanks !!!!!

  7. #7
    Registered User
    Join Date
    08-15-2015
    Location
    Dallas
    MS-Off Ver
    2014
    Posts
    8

    Re: Email a screenshot of a specifc row in an email to a specfic email address

    Yee Haw!!!!
    Last edited by Cobra75007; 08-19-2015 at 02:42 AM.

  8. #8
    Registered User
    Join Date
    08-15-2015
    Location
    Dallas
    MS-Off Ver
    2014
    Posts
    8

    Re: Email a screenshot of a specifc row in an email to a specfic email address

    Thanks again! quick question.... what would I need to add to remove the "y" from column 'o' once email is created?

    Also, If I want to convert this code to use CDO and send the email on it's own, without me having to click the send button, what code would I use? or should I open a new thread?

  9. #9
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: Email a screenshot of a specifc row in an email to a specfic email address

    I wont suggest to use CDO since it requires many advanced configuration, but below code will nor require you to press send button & will remove "y" from column O too...

    Please Login or Register  to view this content.

    Cheers!!
    Last edited by excelliot; 08-19-2015 at 10:45 AM.

+ 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. attach different worksheet and email them tdifferent email address through macro/vba/addin
    By arunverma004 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-03-2014, 08:20 AM
  2. VBA code to send email to the people whose email address is in the Access table
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-30-2014, 05:11 AM
  3. [SOLVED] Extracting email chain email address and converting to Excel column
    By Leah_Hael in forum Excel General
    Replies: 4
    Last Post: 12-28-2012, 04:05 PM
  4. Replies: 1
    Last Post: 03-08-2012, 01:57 PM
  5. Replies: 6
    Last Post: 12-02-2011, 02:14 PM
  6. Macro doesn't automatically resolve All email address when email is drafted
    By sonny.thind in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2011, 12:58 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