Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How can I auto refresh a column that has an auto filter in place

I am workin in Excel, and have an issue with filtering a column
automatically. The column is fed by formulas in the cells. I want to auto
filter the column (non-blanks) and this works fine. However, when the input
data is changed, and the column fills with new values, the filter is not
automatically re-applied, and I have to manually re-apply it. How can I
automize this process?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default How can I auto refresh a column that has an auto filter in place

This example uses data in column A. The macro will automatically refresh the
autofilter whenever formulas are calculated:

Private Sub Worksheet_Calculate()
Application.EnableEvents = False
Set r = ActiveCell
Columns("A:A").Select
Application.CutCopyMode = False
Selection.AutoFilter
Selection.AutoFilter Field:=1, Criteria1:="<"
r.Select
Application.EnableEvents = True
End Sub

Note that this is Event code and goes in the worksheet code area, not a
standard module.
--
Gary''s Student - gsnu200761


"Pastal" wrote:

I am workin in Excel, and have an issue with filtering a column
automatically. The column is fed by formulas in the cells. I want to auto
filter the column (non-blanks) and this works fine. However, when the input
data is changed, and the column fills with new values, the filter is not
automatically re-applied, and I have to manually re-apply it. How can I
automize this process?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Count for Auto Filter Doesn't Function under certain circumst Jonathan Horvath Excel Discussion (Misc queries) 2 August 17th 07 03:51 AM
Auto Number the Rows of Auto Filter Result ashish128 Excel Discussion (Misc queries) 3 April 29th 07 06:41 PM
refresh auto filter jenn Excel Worksheet Functions 5 January 2nd 07 10:42 AM
Auto sum returns a 0 value in place of sum of values in column. Jo Anna Excel Discussion (Misc queries) 4 August 28th 06 06:56 PM
How can I auto-refresh auto-filters when data changes? Mike@MPWco Excel Worksheet Functions 0 July 4th 06 12:50 PM


All times are GMT +1. The time now is 12:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"