+ Reply to Thread
Results 1 to 4 of 4

Pasting cells into the body of an e-mail returning blank cells

  1. #1
    Registered User
    Join Date
    12-09-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    21

    Pasting cells into the body of an e-mail returning blank cells

    Hi all,

    So I'm trying to send e-mails to multiple people. The details of each recipient are held on a single row - the e-mail address, their name and the range of cells that I want to paste. I've built a formula which should send an e-mail for all the rows on the spreadsheet.

    My problem is that it only pastes blank cells into the body of the e-mail.

    The msgbox flags I've put in imply that the variables are changing correctly via the loop as well. Does anybody have any idea why this might be happening or what I could do to fix it?

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,062

    Re: Pasting cells into the body of an e-mail returning blank cells

    hi,
    Leith Ross has a very useful code, I use it, see if it helps u!
    Attached Files Attached Files
    Regards, John55
    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.

    ...enjoy -funny parrots-

  3. #3
    Registered User
    Join Date
    12-09-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Pasting cells into the body of an e-mail returning blank cells

    Hi john,

    Thanks for that - luckily, I already have a Function by RonDeBruin which accomplishes the pasting of the range (below, for the curious).

    The issue is that when I use it in the context of my original post, it seems to be pasting blanks. I know that the function works normally, because I've tested it in a separate workbook - but it seems to be misfiring here.

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,062

    Re: Pasting cells into the body of an e-mail returning blank cells

    hi,
    try this
    Please Login or Register  to view this content.
    Last edited by john55; 04-03-2012 at 08:24 AM.

+ 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