Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default 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
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
Duplicate Running Total Grand Total In Pivot Table Mathew P Bennett[_2_] Excel Discussion (Misc queries) 1 August 17th 08 03:13 AM
pivot table running total problem shripaldalal Excel Programming 0 September 16th 07 08:35 PM
Pivot Table Problem - Use Total Count in Other Formulas Ronster[_3_] Excel Programming 0 May 15th 07 08:58 PM
Pivot table from CSV data, problem with percentage of total. Gloria Thrurk Excel Worksheet Functions 1 August 24th 06 02:45 PM
% of Running Total to Grand Total in Pivot Table David Excel Programming 0 August 17th 05 08:24 PM


All times are GMT +1. The time now is 09:51 PM.

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

About Us

"It's about Microsoft Excel"