+ Reply to Thread
Results 1 to 9 of 9

Copy/paste select cells in active row for use in email body

  1. #1
    Registered User
    Join Date
    11-11-2012
    Location
    Clearwater, Florida
    MS-Off Ver
    Excel 2010
    Posts
    11

    Copy/paste select cells in active row for use in email body

    Hello,

    I am looking for some help with copying range A:F from the active row based on the formulas in the beginning of the code, then paste it into the email body later in the code. What I have cobbled together works exceptionally well, but I need to replace "INSERT A:F HERE!" with actual data.

    Thank you in advance.


    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Copy/paste select cells in active row for use in email body

    Will it be A:F in the same row as Cell?

    How do you want to display the range in the email?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    11-11-2012
    Location
    Clearwater, Florida
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Copy/paste select cells in active row for use in email body

    Yes, if the cell colorIndex =45
    Thanks for the quick response Norie.

  4. #4
    Registered User
    Join Date
    11-11-2012
    Location
    Clearwater, Florida
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Copy/paste select cells in active row for use in email body

    If the active row range could appear as an exact copy as it is on the spreadsheet would be sufficient.
    I don't necessarily need anything fancy.

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Copy/paste select cells in active row for use in email body

    I wasn't really suggesting anything fancy.

    To get it to appear like it is on the sheet you would need to use HTML.

    If you just wanted it to appear as a list of values you could use this.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    11-11-2012
    Location
    Clearwater, Florida
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Copy/paste select cells in active row for use in email body

    I'll give this a try.
    Thanks so much.

  7. #7
    Registered User
    Join Date
    11-11-2012
    Location
    Clearwater, Florida
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Copy/paste select cells in active row for use in email body

    The code works as advertised. Thank you so much. One last question; how difficult would it be to have the vb look at M of the active row at the beginning and if populated, move on and disregard the L & email?

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Copy/paste select cells in active row for use in email body

    It would be straightforward to look at M but what do you mean by 'the L & email'?

    Do you mean you want to check column M before you check column L?

    Perhaps something like this.
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    11-11-2012
    Location
    Clearwater, Florida
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Copy/paste select cells in active row for use in email body

    YES! That's it.
    Thank you so much for the quick resolution.

+ 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