+ Reply to Thread
Results 1 to 5 of 5

Having issue to paste formatted text and table same time

  1. #1
    Registered User
    Join Date
    07-12-2018
    Location
    india
    MS-Off Ver
    2016
    Posts
    2

    Having issue to paste formatted text and table same time

    Hi,
    I have started the create VBA coding for send mail to different person with different table message using outlook.

    So i am taking all the information from excel through and i have write code to paste formatted text and table same time in mail body.

    i cant paste table and formatted text same time, if i try to paste one by one ,second body is overwriting the first body.

    For paste text - .Body = ws2.Range("C2").Value

    For paste table - .HTMLBody = RangetoHTML(rng)

    Please help me to resolve above issue.

    Thanks & Regards
    Parthiban V

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

    Welcome to Excelforum. Be a part of large Excel community. Enjoy Learning.
    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]

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,283

    Re: Having issue to paste formatted text and table same time

    Is this an Excel or Outlook question?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Having issue to paste formatted text and table same time

    I will move this to the appropriate forum
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    07-12-2018
    Location
    india
    MS-Off Ver
    2016
    Posts
    2

    Re: Having issue to paste formatted text and table same time

    Hi,
    Thanks for your response.

    This this an Excel question. Please help me how can i paste formatted text and table in to outlook using excel VBA code ?

    Thanks
    Parthiban V

+ 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. [SOLVED] Numbers formatted as text cells creating formula issue
    By Nitefox in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 07-12-2018, 12:27 AM
  2. Numbers formatted as text cells causing formula issue
    By Nitefox in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-04-2018, 11:01 AM
  3. [SOLVED] Issue with pre formatted date in pivot table (Cannot group that selection)
    By ppgab in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 02-25-2016, 12:22 PM
  4. Excel convert Text time formatted 10h 58m to time so I can sum together
    By slinka in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-04-2016, 10:17 AM
  5. Convert formatted text to fixed text value (time)
    By steez in forum Excel General
    Replies: 2
    Last Post: 04-10-2015, 03:12 PM
  6. Replies: 0
    Last Post: 07-31-2006, 12:58 PM
  7. Replies: 0
    Last Post: 07-31-2006, 12: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