+ Reply to Thread
Results 1 to 4 of 4

Automatically re-apply filter when data changes

  1. #1
    Registered User
    Join Date
    10-13-2020
    Location
    Cornwall
    MS-Off Ver
    2009
    Posts
    22

    Automatically re-apply filter when data changes

    Hey all,

    I'm trying to get a table to re-apply filters when one of the blank cells changes (blank cells are currently filtered out), I don't change the value of the cells in the table manually, they are formulated.

    This is the macro I tried, but it doesn't seem to work:

    Private Sub Worksheet_Change(ByVal Target As Range)
    Sheets("Symbol Bar Chart Reference").ListObjects("Symbols").AutoFilter.ApplyFilter
    End Sub

    Would greatly appreciate some help with this one.

    J

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

    Re: Automatically re-apply filter when data changes

    A Worksheet Change Event handler doesn't fire for changes in formula values. It only fires if a cell value is changed manually or via VBA.
    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
    10-13-2020
    Location
    Cornwall
    MS-Off Ver
    2009
    Posts
    22

    Re: Automatically re-apply filter when data changes

    Quote Originally Posted by TMS View Post
    A Worksheet Change Event handler doesn't fire for changes in formula values. It only fires if a cell value is changed manually or via VBA.
    Well shoot, is there a script that can be written that fires the Change Event handler when a unique value is added to a range?

  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
    44,377

    Re: Automatically re-apply filter when data changes

    You could maybe use the Calculate Event handler. See: https://docs.microsoft.com/en-us/off...alculate(even)

+ 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. Replies: 3
    Last Post: 03-19-2018, 11:26 AM
  2. How To Apply Data Filter On Pivot Table Columns!
    By Rajeshkumar R in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-28-2018, 07:51 AM
  3. Apply auto filter and copy data one below other
    By Andy308 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-10-2016, 09:05 AM
  4. Replies: 1
    Last Post: 06-09-2016, 12:12 PM
  5. Replies: 1
    Last Post: 04-05-2016, 10:35 AM
  6. [SOLVED] make filter automatically re-apply when cell values change
    By tlacloche in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 04-02-2013, 06:44 PM
  7. Replies: 1
    Last Post: 12-10-2012, 10:22 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