Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Filtering Automatically

I am creating a model for a user. How do you choose(filter) the top 3 of 10
automatically after a user has changed input? I have been able to filter the
top 3 but when the users input changes, the filter does not automatically
update.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default Filtering Automatically

Hi

See if this code will help you.
Just notice as it's an event code it has to go into the code sheet for
desired sheet.

Private Sub Worksheet_Change(ByVal Target As Range)

Set isect = Intersect(Target, Range("A1:A100"))
If Not isect Is Nothing Then
Range("A1:A100").AutoFilter Field:=1, Criteria1:="3",
Operator:=xlTop10Items
End If
End Sub

Regards,
Per

On 22 Nov., 16:36, Choose Top 3 Automatically <Choose Top 3
wrote:
I am creating a model for a user. How do you choose(filter) the top 3 of 10
automatically after a user has changed input? I have been able to filter the
top 3 but when the users input changes, the filter does not automatically
update.


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
Filtering DL101 Excel Discussion (Misc queries) 2 January 27th 10 05:04 PM
Automatically insert time in excel but not automatically updated NeueN Excel Worksheet Functions 4 December 25th 08 07:29 AM
filtering oldLearner57 Excel Discussion (Misc queries) 5 October 5th 08 12:44 PM
Automatically filtering a range Winston Williams Excel Discussion (Misc queries) 1 June 24th 07 03:03 AM
trouble filtering a list. Why isn't column filtering? Pat Excel Worksheet Functions 1 July 18th 05 03:30 PM


All times are GMT +1. The time now is 10:19 AM.

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

About Us

"It's about Microsoft Excel"