+ Reply to Thread
Results 1 to 6 of 6

Email Data Range from Excel using Outlook

  1. #1
    Registered User
    Join Date
    07-22-2010
    Location
    Asheboro, NC
    MS-Off Ver
    Excel 2007
    Posts
    12

    Question Email Data Range from Excel using Outlook

    Hello Everyone,

    I am trying to build a issue tracker template for our IT team. One of the features in this template is, once a user enters a line item, the most recent line item should be e-mailed to the IT team. I am using the code shown below for this purpose

    I would like to keep the selection range (columns B thru H and the most recently entered row) dynamic. For this, I am using a variable for the most recently entered row number (which I have stored in cell A2 on the active sheet). However, I cannot get the macro to select the most recent range.

    I would appreciate any help you can offer.

    Thanks,


    Please Login or Register  to view this content.

  2. #2
    Forum Expert 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: Email Data Range from Excel using Outlook

    Hi ameyabrid

    Have no way to test this but it seems to me this line of code
    Please Login or Register  to view this content.
    should be
    Please Login or Register  to view this content.
    to send
    columns B thru H and the most recently entered row
    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
    07-22-2010
    Location
    Asheboro, NC
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Email Data Range from Excel using Outlook

    Thanks for replying John,

    You were right, that was indeed the erronous line (which I had figured out). I havent tried your solution yet but I kept messing with the vba range selection options and this worked for me.

    Please Login or Register  to view this content.
    Thanks again for trying. Appreciate your help.

  4. #4
    Registered User
    Join Date
    07-22-2010
    Location
    Asheboro, NC
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Email Data Range from Excel using Outlook

    I just tried your solution and that worked too. Thanks for you input John.

  5. #5
    Forum Expert 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: Email Data Range from Excel using Outlook

    Hi ameyabrid

    I'd have though your line would be written like this but if what you have works...go for it.
    Please Login or Register  to view this content.
    Happy to be of help.

  6. #6
    Forum Expert 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: Email Data Range from Excel using Outlook

    Hi ameyabrid

    If this resolves your issue, I'd appreciate it if you'll mark your Thread as solved.

+ 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