+ Reply to Thread
Results 1 to 6 of 6

Filtercriteria not copied over

  1. #1
    Registered User
    Join Date
    05-07-2013
    Location
    Amsterdam
    MS-Off Ver
    Excel 2013
    Posts
    72

    Filtercriteria not copied over

    Hi i am having an issue with a code.
    I filter a criteria and basically paste within a range of sheets.

    Somehow it does only do 3 sheets.... and its very slow

    Also I cant put the thisworkbook..etc. into the with sheet - end with.

    Please Login or Register  to view this content.

  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
    48,996

    Re: Filtercriteria not copied over

    I suspect that there is no filtered data for sheet 4 and the code fails bu that's just a guess.

    Can you post a sample workbook with some typical, but non-sensitive data?

    Regards, TMS
    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
    Registered User
    Join Date
    05-07-2013
    Location
    Amsterdam
    MS-Off Ver
    Excel 2013
    Posts
    72

    Re: Filtercriteria not copied over

    indeed sensitive, it contains corporate costs with names and salaries ;-)

    Strange thing is... there is always data on the Range ("K3:Q3"), its the header, otherwise you cant do the .End(xlDown)).Copy on the filtering.

    Excel3.JPG

    As you can see, Row 3 it is a header.. I filter that data on accountcode and copy the filter results with .End(xlDown)).Copy into column X3

  4. #4
    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
    48,996

    Re: Filtercriteria not copied over

    Can you make a (partial) copy and remove the names and salaries, and anything else sensitive? Difficult to test a solution with no data ... and difficult to see how it fails if you are not in a position to see it fail.

    Regards, TMS

  5. #5
    Registered User
    Join Date
    05-07-2013
    Location
    Amsterdam
    MS-Off Ver
    Excel 2013
    Posts
    72

    Re: Filtercriteria not copied over

    I cant believe i see it when i write about it! Found out... i am picking up the wrong field!

    in the picture the Consolidated account needs to be filtered on Rang ("K3:Q3") and then I pickup field 7... that should have been field 2.. Column L. In some sheets L doesnt have anything (you triggerd me with the "Empty cells".

  6. #6
    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
    48,996

    Re: Filtercriteria not copied over

    You're welcome. Thanks for the rep.


    But your second filter criteria is on field 2, column L. Isn't field 7 column Q?

    Whatever, if it's prompted an effective review, that's all that matters.

    Regards, TMS

+ 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] When data is copied to another workbook, hyperlinks as not copied or they don't work
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-17-2014, 06:46 AM
  2. Copying multiple worksheet so that copied hyperlinks link to new copied sheets
    By chrisjames25 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-01-2013, 02:37 PM
  3. can it be copied instead of referenced
    By D.R. - Help in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. [SOLVED] How to make Bullen's FilterCriteria() data refresh real-time?
    By Dennis in forum Excel General
    Replies: 9
    Last Post: 03-12-2005, 06:06 PM
  5. [SOLVED] Go To Value as Copied
    By Jasper in forum Excel General
    Replies: 1
    Last Post: 03-06-2005, 01:06 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