+ Reply to Thread
Results 1 to 2 of 2

How to AutoFilter a column when any value changes in a sheet?

  1. #1
    Registered User
    Join Date
    05-18-2013
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2010
    Posts
    9

    How to AutoFilter a column when any value changes in a sheet?

    Hi everybody,

    I am new to VBA, andI have been stuck on this problem for about 3 hours now, and I would be really thankful if somebody can help me.

    Objective - To automatically filter Column A (True/False) by "True" everytime there is any change in the sheet.

    Problem Description -

    The following code works fine just to filter the column:

    Please Login or Register  to view this content.
    But I am unable to get this code to execute automatically every time there is a change, defeating the purpose.

    I have tried using the worksheet_change function, as below, but to no avail

    Please Login or Register  to view this content.
    Will be glad for any help. Thanks!

  2. #2
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: How to AutoFilter a column when any value changes in a sheet?

    Hi pgk_05, welcome to the forum!

    I assume you have put the Worksheet_Change event in the Worksheet-Module,
    you can better use the Intersect statement in the Worksheet_Change event:
    Please Login or Register  to view this content.
    Cheers
    Erwin
    I started learning VBA because I was lazy ...
    Still developing.... being more lazy...

+ 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. Autofilter rows based on column data in other sheet or file
    By purlo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2020, 06:44 AM
  2. Autofilter, copy from sheet 1 and paste to sheet2, delete previous info on sheet 2
    By leigh12483 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2015, 08:21 PM
  3. Replies: 3
    Last Post: 10-22-2012, 05:23 PM
  4. Autofilter on more than one sheet
    By crazyleg in forum Excel General
    Replies: 1
    Last Post: 05-08-2008, 08:24 AM
  5. [SOLVED] Autofilter from one sheet to another?
    By Pat in forum Excel General
    Replies: 1
    Last Post: 05-03-2006, 07:40 PM
  6. [SOLVED] Need help hiding/unhiding column based on autofilter selection in a different column
    By kcleere in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2006, 02:25 AM

Tags for this Thread

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