Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Table properties/Table total Row problem
I would like the Worksheet_Change event to do one sub procedure if an
Excel 2007 table is filtered, and I would like it to do another subroutine if it is not filtered. Is there a table property or some way of determining this? Specifically, I'm trying to programmatically change my Table Total Row formulas based on on whether my Table is filtered or not. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Table properties/Table total Row problem
Hi John,
There is a property you can check: If shtMySheet.FilterMode = True Then 'DO THIS Else 'DO THIS INSTEAD End If However, I was trying to do the exact same thing and I found that if the selected cell was outside of the table range then sometimes it would show as False when the table was in fact filtered (even after activating the sheet). I simply added a line that selected a cell in the title row first, then no problems! shtMySheet.Cells(tblDataTable.HeaderRowRange.Row, _ tblDataTable.HeaderRowRange.Column).Select Hope this helps, Sean. -- (please remember to click yes if replies you receive are helpful to you) "John" wrote: I would like the Worksheet_Change event to do one sub procedure if an Excel 2007 table is filtered, and I would like it to do another subroutine if it is not filtered. Is there a table property or some way of determining this? Specifically, I'm trying to programmatically change my Table Total Row formulas based on on whether my Table is filtered or not. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Duplicate Running Total Grand Total In Pivot Table | Excel Discussion (Misc queries) | |||
pivot table running total problem | Excel Programming | |||
Pivot Table Problem - Use Total Count in Other Formulas | Excel Programming | |||
Pivot table from CSV data, problem with percentage of total. | Excel Worksheet Functions | |||
% of Running Total to Grand Total in Pivot Table | Excel Programming |