Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to hide rows without using autofilter (I need to execute
code when filter choice is changed and don't want to have to use Worksheet_Calculate because of all the complications it can cause), so I"m using a dropdown from the forms toolbar. My problem is the execution is slow. Is there a faster way to do this? Here's my code: Public Sub DropDownBU_Change(Optional bPrinting As Boolean) Dim strBUChoice As String, r As Range, rngEmployees As Range Application.ScreenUpdating = False Cells.Rows.Hidden = False strBUChoice = Range("CurrentFilterSetting").Text Set rngEmployees = Range("EmployeeTable") For Each r In rngEmployees.Rows If Intersect(r, Range("BUColumn")).Value < strBUChoice Then r.Hidden = True Next r Application.ScreenUpdating = True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hide Rows based on value, but not using autofilter | Excel Worksheet Functions | |||
Hide ALL dropdowns on autofilter | Excel Discussion (Misc queries) | |||
Can faster CPU+larger/faster RAM significantly speed up recalulati | Excel Discussion (Misc queries) | |||
Faster AutoFilter? | Excel Programming | |||
Any delete rows macro faster than this one??? | Excel Programming |