+ Reply to Thread
Results 1 to 4 of 4

automate auto filter?

  1. #1
    Registered User
    Join Date
    12-01-2009
    Location
    Semarang
    MS-Off Ver
    Excel 2007
    Posts
    9

    automate auto filter?

    Dear all,

    I have create a simple macro to filter data use criteria text filter and contains which reference to a cell, so when i click the Search button then will automatically filter data, I don't need to go to menu DATA=>FILTER=>TEXT FILTER=> SELECT CONTAIN=>and type the the text.
    Reference cell: L1
    Column to filter: H
    Range filter:A1:I56846

    Here is My script:
    Please Login or Register  to view this content.
    My question is,
    How to modify the script which make the filter work when I just press ENTER after type the criteria in cell L1, so i don't need to click the button?

    Many Thanks
    Last edited by fua; 12-21-2009 at 11:30 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    re: automate auto filter?

    Hi,

    you could put a macro into the sheet module for Worksheet_Change, test if the cell just changed is L1 and if so, call the Search() macro (or copy the complete Search() macro into the Worksheet_change and run it when L1 is the target cell.

    hth

  3. #3
    Registered User
    Join Date
    12-01-2009
    Location
    Semarang
    MS-Off Ver
    Excel 2007
    Posts
    9

    re: automate auto filter?

    Thanks, it solved using Worksheet_Change

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    re: automate auto filter?

    Great. Thanks for checking back.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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