Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have 2 rows of totals at the bottom of my database (separated from the DB
by an empty row). When filtering with AutoFilter, the totals rows will sometimes become hidden. I added the following procedure in my worksheet calculate event in an attemt to remedy this problem: Private Sub Worksheet_Calculate() 'Prevent Totals Row from being hidden when filtering On Error Resume Next If wshDatabase.Range("TotalsRows").EntireRow.Hidden = True Then wshDatabase.Range("TotalsRows").EntireRow.Hidden = False Exit Sub On Error GoTo 0 End If End Sub The problem is, this sub causes Excel to crash. Can someome recommend a better sub to keep the totals rows unhidden when filtering? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sorting data and Advance filtering to get totals on a spreadsheet | Excel Discussion (Misc queries) | |||
Filtering totals - Reps per Province | Excel Worksheet Functions | |||
Adding totals after filtering | Excel Discussion (Misc queries) | |||
Fast way to make rows visible and invisible | Excel Programming | |||
Filtering and Totals | Excel Discussion (Misc queries) |