+ Reply to Thread
Results 1 to 3 of 3

code worked but not now??

  1. #1
    Registered User
    Join Date
    04-09-2008
    Posts
    5

    code worked but not now??

    Im extremely stumped with this situation i have. I have excel worksheet with quite a bit of functionality and one of the things it does is copy some data from another workbook and then filter out the unique records in certain columns. About 30 minutes ago, excel got glitchy(what else is new) and i ended up closing everything down and opening back up. I tried running the code that filters the data and nothing happened. I stepped through it and watched it supposedly run the code but it never filtered the column i wanted. All it did was copy the header and one of the cells to be filtered whereas before it worked perfectly. I then close down everything, open back up and it may or may not work..

    Just so you can understand here is my filter code. i recorded it and it is identical to the code excel gave me from when i recorded it.


    Please Login or Register  to view this content.
    Any info or comments on whats going on would be greatly appreciated

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    You don't appear to have a criteria range which should include your selected column headers and a blank row underneath.

    e.g.

    Please Login or Register  to view this content.
    Martin

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello mrice,

    The Criteria argument is ignored when the Unique flag is set to True.

    Sincerely,
    Leith Ross

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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