AutoFilter Help

Evagrius Ponticus

Well-known Member
Joined
May 24, 2007
Messages
1,467
Hi All,

I have worksheet with about 250 rows of data - this is the "Summary" sheet. The sheet is autofiltereed. Among othe things, the column headings are "project" and "Project Leader".

In the workbook, I have numerous sheet tabs each named after a project leader.

Here is what I am trying to do w/my code. When a project leader activeates their tab, the "Summary" sheet is filtered w/only that person's projects, the filtered data is then copied into that person's sheet, and any updates they make to that data on their sheet is then reflected on the "Summary" sheet. Thanks for any help. Here is what I have so far.


Code:
Private Sub Worksheet_Activate()
Set MyActive = Sheets("Summary")

'FILTER SUMMARY SHEET BASED ON LEADER
MyActive.Range("T1").AutoFilter Field:=20, Criteria1:="Jack Black"

End Sub


Private Sub Worksheet_Deactivate()

'RESET AUTOFILTER TO SHOW ALL PROJECTS
    With MyActive
    If .AutoFilterMode Then
     .ShowAllData
    End If
    End With

End Sub
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,191,671
Messages
5,987,956
Members
440,121
Latest member
eravella

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top