+ Reply to Thread
Results 1 to 8 of 8

VBA to open MS Outlook and paste cell contents into body

  1. #1
    Registered User
    Join Date
    08-17-2016
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    8

    VBA to open MS Outlook and paste cell contents into body

    Hi there,

    Relatively new to VBA so this is proving quite a challenge for me.

    Does anyone have a simple VBA code to Copy a cell (in this case A111), open Outlook, paste the cell contents into the body of the email and add an email address and subject?

    I have found a code that seems to open the workbook into an email format, but is within excel. I need this to paste the data into an outlook email.

    Any help would be greatly appreciated!

    Thank you

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: VBA to open MS Outlook and paste cell contents into body

    what exactly is in cell A111?
    is the body of the email pre existing or you creating a new email from scratch?


    sounds like you need something like this
    https://www.rondebruin.nl/win/s1/outlook/bmail2.htm
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    08-17-2016
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    8

    Re: VBA to open MS Outlook and paste cell contents into body

    Hmmm Apologies if this duplicates the reply... seems my reply did not save.

    Cell A111 has a concatenate formula stringing an array of cells together. The link you have posted does work for the most part, but for some reason not pasting the data into the email body.

    I think it has something to do with setting the range (set rng) but this is a bit beyond my skills to fix.

    Here's what I have so far:

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: VBA to open MS Outlook and paste cell contents into body

    hmm just try this instead

    Please Login or Register  to view this content.
    you dont need to use HTMLbody if you just want to paste text from a cell
    go with the .body and then you can get rid of all that other stuff to do with RNG as well


    the full code was designed to do much broader stuff than it seems like you don't require
    Last edited by humdingaling; 12-18-2017 at 02:32 AM. Reason: simplified outcome

  5. #5
    Registered User
    Join Date
    08-17-2016
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    8

    Re: VBA to open MS Outlook and paste cell contents into body

    Perfect!! Thank you SOOOOOO much! That works a treat!!
    Last edited by CheekyDevil; 12-18-2017 at 02:35 AM.

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: VBA to open MS Outlook and paste cell contents into body

    sorry
    did you read my amended post or first post?
    i jumped the gun and may have over complicated it with my original post

  7. #7
    Registered User
    Join Date
    08-17-2016
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    8

    Re: VBA to open MS Outlook and paste cell contents into body

    Haha yep delays are a pain huh Yeah that was a reply to your first post, I've edited my reply now. Thank you again SO much for this! You are an absolute legend :D

  8. #8
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: VBA to open MS Outlook and paste cell contents into body

    sometimes i reply too fast before reading the whole responses

    Not a problem
    Glad to help

+ 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. Copy and Paste Cell Range into body of email and automatically send via Outlook
    By Sasquatch2014 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2017, 11:57 AM
  2. Exel Vba to create outlook Appointment and paste in range to the body
    By robtuby in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-09-2016, 12:44 PM
  3. Help with Copy Range from Tab and Paste In Outlook Email Message Body.
    By N4VBA in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-25-2014, 03:40 PM
  4. I want to open up an outlook e-mail with info. pre-set in the subject and body...
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-22-2014, 10:47 AM
  5. Paste Conditional formatting into Outlook email body
    By tabkaz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2013, 07:58 PM
  6. Convert text into bitmap and paste on mail body of outlook
    By Deepak -WFM in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-20-2013, 07:12 AM
  7. Get text from body of open outlook message
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2010, 04:53 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