+ Reply to Thread
Results 1 to 8 of 8

Unable to send user-editable text to Outlook email body based on active cell.

  1. #1
    Registered User
    Join Date
    02-19-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    9

    Unable to send user-editable text to Outlook email body based on active cell.

    I'm attempting to send an email template from Excel to Outlook based on the active cell on which the user is selected when clicking the Control button. I've been around and around Ron de Bruin's website testing different scenarios and none seem to fit what I'm looking for.

    Let's say I have columns A, B, and C; each column has its own associated email template/text. No matter what row is active in those 3 columns, I want the associated email to be displayed in Outlook when clicking a single Control button. The kicker is that the VBA-ignorant user needs to be able to edit the email template. The closest I've come so far is to do a series of Active Cell and Offset commands to refer to a hidden column containing the email text that I've previously pasted. The problem is that the code is pretty messy (see below), the user needs to delete unnecessary carriage returns before sending the email, and worst of all - the text loses its formatting when sent to Outlook.

    I'm thinking all these problems might be solved if I could send an embedded Word doc (Insert >Object) as the body of the email. Is this possible? Thanks!

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Unable to send user-editable text to Outlook email body based on active cell.

    Hello m0meehan,

    Welcome to the Forum!

    It would be easier to identify and correct the problems using the workbook.

    How To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    02-19-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Unable to send user-editable text to Outlook email body based on active cell.

    workbook is now attached.
    Attached Files Attached Files

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Unable to send user-editable text to Outlook email body based on active cell.

    Hello m0meehan,

    Thanks for posting the workbook. I have been working on this for a few hours. This is more of challenge than I first thought. Will keep you posted on the progress.

  5. #5
    Registered User
    Join Date
    02-19-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Unable to send user-editable text to Outlook email body based on active cell.

    Much thanks for your work, Leith. Don't spend too much time on it!! I know someone out there has to have successfully completed something similar.

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Unable to send user-editable text to Outlook email body based on active cell.

    Hello m0meehan,

    Are you allowing the user to change the font type, size, and color, etc.? If you are not then it will make this much easier to do.

  7. #7
    Registered User
    Join Date
    02-19-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Unable to send user-editable text to Outlook email body based on active cell.

    Leith,

    It'd be nice to allow the user to change anything about it, but changing the actual email text is the most important thing to allow user to change. If we can get that far, that'd be awesome.

  8. #8
    Registered User
    Join Date
    02-19-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Unable to send user-editable text to Outlook email body based on active cell.

    For those referencing this thread for future use, I've given up on the email text buried in the excel document and gone to outlook templates (.oft). It will be a little more work on the front end for the user but will keep all HTML formatting.

+ 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. Send Email with Specific Text from Cells in the body
    By Will03 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2013, 12:30 PM
  2. Using Excel vba to send hyperLinks in the body text of an Outlook email using a checkbox
    By PatrickASnyder in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2013, 04:13 PM
  3. Macro to Send Email with text in body
    By Jiptastic in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-25-2013, 09:29 PM
  4. Replies: 0
    Last Post: 10-18-2012, 03:06 AM
  5. Send email using Active Cell but using external Outlook / Livemail template
    By sellenwood in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-11-2011, 12:39 AM

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