+ Reply to Thread
Results 1 to 4 of 4

Excel VBA to Copy Merged Range along with Normal Range and Export it to Outlook

  1. #1
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Question Excel VBA to Copy Merged Range along with Normal Range and Export it to Outlook

    Dear Experts,

    I have come across a strange issue with Excel Merged cells and need your suggestions to fix this.
    Attached is the sample file along with Macro in it, all i am trying to do is copy this data into new worksheet and export into an outlook email.

    Since top header is merged range, the code line "rng.Copy" under "Function RangetoHTML(rng As Range)" just doesn't work.
    Can anyone help me with VBA code to export this data into outlook.

    Thanks a lot for your suggestions in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    Hi,

    just unmerge …

  3. #3
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Re: Excel VBA to Copy Merged Range along with Normal Range and Export it to Outlook

    Thats the final solution i am thinking off..Is there no way that merged cells can be exported into outlook email..?

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Question


    Try with the width of the range as large as the merge cells …

+ 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 Range to Outlook email retaining formatting
    By lougs7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-24-2019, 11:19 AM
  2. Replies: 1
    Last Post: 10-22-2016, 04:27 AM
  3. How to copy and paste Excel Range to Outlook AS TEXT
    By gron78 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-24-2014, 03:07 PM
  4. Why does this export to outlook code not work when my body has a range name in it....
    By joshnathan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2012, 07:53 AM
  5. Replies: 0
    Last Post: 05-14-2012, 08:43 PM
  6. Copy Excel Range into Word, without Normal.docm save prompt
    By Graham1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-03-2011, 02:52 PM
  7. [SOLVED] How to set a range of cells in Excell to export to Outlook
    By Ane in forum Excel General
    Replies: 1
    Last Post: 11-26-2005, 04:20 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