+ Reply to Thread
Results 1 to 10 of 10

Filter, Copy, Paste Dynamic ranges

  1. #1
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    174

    Filter, Copy, Paste Dynamic ranges

    Hi,

    I am really annoyed with myself as I know I have done this in the past.

    I have a Workbook with about 30 Worksheets with the last one being an overview of the previous 29. ("Summary")
    I have the same table on each of the first 29 ws from columns A to O. Row 1 is the headings and the total number of rows varies sheet to sheet.
    In Column M the cells can only be A, B or C.

    How do I write the vba code that upon selecting the "Overview" ws, the following happens;
    • Everything but the headings is deleted
    • Each list on the previous ws's are filtered to only show A's & B's in Column M
    • Each filtered list is copied (without headings) to the Overview ws
    • Each pasted data is appended to the bottom of what is there already

    I appreciate any help you could give me.

  2. #2
    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,380

    Re: Filter, Copy, Paste Dynamic ranges

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    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


  3. #3
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Filter, Copy, Paste Dynamic ranges

    Please find sample attached.

    There are no macros in this at the moment.
    It shows that each list was filtered to not show anything ranked as a 'C' and then copied across into 'Overview'

    Any questions, please ask.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Filter, Copy, Paste Dynamic ranges

    Am I asking for too much?
    It would also work to copy the entire data from each worksheet (without the headings) to the Overview worksheet and then filter the list there to remove all C rankings.

  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,380

    Re: Filter, Copy, Paste Dynamic ranges

    No, just not had time to code it.

  6. #6
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Filter, Copy, Paste Dynamic ranges

    You are very kind. My brain just can't seem to work it out today...or yesterday...

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,517

    Re: Filter, Copy, Paste Dynamic ranges

    Try
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Filter, Copy, Paste Dynamic ranges

    You...are...awesome!!
    Many thanks

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,517

    Re: Filter, Copy, Paste Dynamic ranges

    You are welcome and thanks for the rep.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  10. #10
    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,380

    Re: Filter, Copy, Paste Dynamic ranges

    I know you have marked this as solved but, just out of interest, this is the alternative approach of copying all the data to the Overview sheet and then filtering and deleting the rows.

    Please Login or Register  to view this content.

+ 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] Copy data from dynamic ranges and paste it another sheet
    By Villalobos in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2015, 04:58 AM
  2. [SOLVED] Copy/Paste Multiple Dynamic Ranges below each other
    By sudric in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-28-2015, 10:13 AM
  3. Record Macro to Copy / Paste Dynamic Ranges
    By Steve N. in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-12-2013, 08:36 PM
  4. Copy and paste dynamic ranges + transforming into a table
    By tigerallied in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2013, 01:26 PM
  5. Copy and paste based on found cells using two spreadsheets with dynamic ranges
    By shawnsonline in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-28-2012, 02:49 PM
  6. Automatic cut and paste based on dynamic ranges
    By DangerMouse in forum Excel General
    Replies: 1
    Last Post: 03-29-2006, 09:00 AM
  7. Filter Copy/Paste Fails - Two Ranges Selected?
    By Craigm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-15-2005, 11:16 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