+ Reply to Thread
Results 1 to 5 of 5

vba to copy filtered data but data with merged cells to another worksheet

  1. #1
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    vba to copy filtered data but data with merged cells to another worksheet

    Hello,

    I am hoping for some assistance with some new vba code or some help with amending the code below for allowing visible filtered data that has data in several merged cells over to another worksheet titled "Copied". The code below works great for non merged cells, but not with the merged cells. The data I'm trying to filter involves notes, which is contained in these merged cells. I was hoping for some help as to how I might be able to get a more printer friendly layout for when any filtered data is transferred and subsequently printed from the "Copied" worksheet.

    Thanks in advance for any assistance one can offer!

    current code that doesn't work with merged cell data:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    Re: vba to copy filtered data but data with merged cells to another worksheet

    Well I tried the following code to unmerge the cells and then my original code worked, which I believe will take care of the copy filtered data issue.
    Please Login or Register  to view this content.
    Now if anyone could assist me with the 2nd part which would allow me to enter a line break (i.e. alt + enter) after 150 text characters are typed in any cell in Column E, which I believe would make it easier to read and be printer friendly. Thanks for any help one could offer!
    Last edited by lilsnoop; 12-03-2020 at 01:05 AM.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: vba to copy filtered data but data with merged cells to another worksheet

    That could be just:

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    Re: vba to copy filtered data but data with merged cells to another worksheet

    Thanks TMS! I'll modify it.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: vba to copy filtered data but data with merged cells to another worksheet

    You're welcome. Thanks for the rep.

+ 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. Replies: 1
    Last Post: 09-27-2019, 04:32 PM
  2. [SOLVED] Macro to copy Data as per Merged Cells
    By prkhan56 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2017, 04:44 PM
  3. [SOLVED] Copy or reference data to merged cells
    By Scrap74 in forum Excel General
    Replies: 2
    Last Post: 11-28-2013, 10:03 PM
  4. Macro that can filter excel data and copy the filtered data to another worksheet
    By glide2131 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2013, 02:43 PM
  5. Copy Filtered Data to another worksheet with VBA
    By BT Tan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2013, 11:48 AM
  6. Excel VBA to copy visible filtered data from from one worksheet to another
    By rahul1023 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2013, 09:00 PM
  7. [SOLVED] How do I copy a filtered subset of data to another worksheet?
    By sftwrqn in forum Excel General
    Replies: 2
    Last Post: 06-30-2005, 10:05 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