+ Reply to Thread
Results 1 to 4 of 4

excel table in body of CDO email

  1. #1
    Forum Contributor
    Join Date
    06-17-2013
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    247

    excel table in body of CDO email

    Hey Guys,

    Just wanting to know how to email some data in a spreadsheet in a table in the body of a CDO email.

    Ive got the cdo script etc just duno how to get a table in the body like in this for outlook: https://groups.google.com/forum/#!to...os/JiI2CNDfTUg

    Any help would be great!

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: excel table in body of CDO email

    Hi, 13lack13lade,

    maybe have a look at Sending mail from Excel with CDO. You can download a sample workbook with the codes from there. If you want to copy the code to another project please make sure you copy Function RangetoHTML(rng As Range) as well.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Contributor
    Join Date
    06-17-2013
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    247

    Re: excel table in body of CDO email

    hey HaHoBe,

    Thanks for that, ive got it working however it just sends as though it was in a table and doesnt look the best, is there a way to actually send it in a table? or is that not possible.

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: excel table in body of CDO email

    Hi, 13lack13lade,

    why not consider to send an attachment with that particular part as a workbook? That would certainly meet your request. Using CDO I doubt any result you want to be possible (might be proven wrong though).

    Ciao,
    Holger

+ 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. export outlook 2007 email into excel with subject and body of email
    By akulka58 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2013, 02:37 PM
  2. Replies: 2
    Last Post: 08-01-2012, 02:47 PM
  3. Something out of the Purview of Excel-Sending Excel table as a body in an Email?
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-24-2011, 07:50 AM
  4. Help me insert a table of data into a body of an email
    By funkymonkUK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2006, 08:20 AM
  5. Email body with a script and a table
    By Who I Am in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2005, 10:05 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