+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Refresh Autofilter

Hybrid View

  1. #1
    Registered User
    Join Date
    08-18-2011
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Refresh Autofilter

    If I changed to input data, i have to reapply the autofilter once to re-generate the chart. Is there any method that the table can be refreshed automatically??

    My condition:
    Since i've created a table from cell M43 to W8803. The cells along column W appear either "True" or "False". I want the table appears only "True" automatically after I enter the input data.

    Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: Refresh Autofilter

    Quote Originally Posted by nasfric View Post
    Since i've created a table from cell M43 to W8803. The cells along column W appear either "True" or "False". I want the table appears only "True" automatically after I enter the input data.
    Assuming the range containing changed input- data need is B43:B8803 (plz adjust it corresponding to your case),

    Right click on your sheet name, choose view code and paste the code below. This will enable auto-refresh.

    Private Sub Worksheet_Change(ByVal Target As Range)
            If Intersect([B43:B8803], Target) Is Nothing Then Exit Sub
        
            Application.EnableEvents = False
            Application.ScreenUpdating = False
         
            Me.AutoFilter.ApplyFilter
        
            Application.EnableEvents = True
            Application.ScreenUpdating = True
        
    End Sub
    Last edited by tigertiger; 08-22-2011 at 07:16 PM.
    Best regard, -)iger-/iger
    If you are pleased with a solution mark your post SOLVED.

+ 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