+ Reply to Thread
Results 1 to 5 of 5

Excel VBA outlook - Range in mail body

  1. #1
    Registered User
    Join Date
    09-22-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    2

    Excel VBA outlook - Range in mail body

    Hi,

    I am trying to send email (outlook) through excel VBA code. I am able to send mail with attachment using following code But I want to put range of cells in message body with format. I have a piviot in the excel which i want to copy in mail body.

    Please help!

    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 09-22-2013 at 01:55 PM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Excel VBA outlook - Range in mail body

    Check out this link for examples of how to mail a range in the Email Body

    http://www.rondebruin.nl/win/s1/outlook/mail.htm
    John

    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.

  3. #3
    Registered User
    Join Date
    09-22-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Excel VBA outlook - Range in mail body

    Thanks for your quick reply. Sorry, it did achieve what i wanted.

    I tried below code taken from the link you have provided. It copies range of cells and copies to another sheet sends as attachment. What i am looking for is those range of cells to be copied to mail body.

    In below example, my mail body is "Hi there" which i do not want. Instead of this, i want range of cells to be copied. Please help!



    Please Login or Register  to view this content.
    Last edited by arlu1201; 09-25-2013 at 06:31 AM. Reason: Use code tags in future.

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Excel VBA outlook - Range in mail body

    Hi dphadke-gmail-com

    Please wrap your Code in Code Tags.

    Go to the Referenced Link and scroll down to the Outlook object model (body) section

    Capture.jpg

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Excel VBA outlook - Range in mail body

    dphadke,

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. In order to put code tags, either type [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] at the end of it, OR you can highlight your code and click the # icon at the top of your post window.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Read/Export table from Outlook mail body to Excel using VBA
    By pradeepdeepu_001 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-23-2013, 06:48 AM
  2. Send e-mail with image on body (.html) on e-mail manager <> outlook
    By mariotnc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-05-2012, 09:28 PM
  3. Replies: 7
    Last Post: 08-11-2012, 02:39 PM
  4. Replies: 1
    Last Post: 07-07-2006, 07:40 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