Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Volatile function & Filter Show All

I have a function that returns the filter values of a specific cell filter.
My function is called like the following:

=GetFilterValues("B3")

'B3' in an example, it may be any of the cell on which I have a Filter On.

I put "Application.Volatile" in my code to make sure that my function is
executed each time Excel recalculates my spreadsheet.

This works fine but ...

When I have multiple Filters set on my sheet, sometimes instead of undoing
them one by one, I go to the Data menu and I select "Filter Show All". All
my filters are reset but my function is not executed. I still have the
result of the previous execution of my function.

My function is executed only the next time I do something in any of the
cells of this spreadsheet.

What do I have to do to make sure my function is executed when I do a
"Filter Show All" from the Data menu.

By the way, I'm using Excel 2003 on Windows 2003.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Volatile function & Filter Show All

Maybe this:
http://j-walk.com/ss/excel/usertips/tip044.htm

Or, this:
http://www.contextures.com/xlautofilter03.html

Regards,
Ryan----

--
RyGuy


"Pred" wrote:

I have a function that returns the filter values of a specific cell filter.
My function is called like the following:

=GetFilterValues("B3")

'B3' in an example, it may be any of the cell on which I have a Filter On.

I put "Application.Volatile" in my code to make sure that my function is
executed each time Excel recalculates my spreadsheet.

This works fine but ...

When I have multiple Filters set on my sheet, sometimes instead of undoing
them one by one, I go to the Data menu and I select "Filter Show All". All
my filters are reset but my function is not executed. I still have the
result of the previous execution of my function.

My function is executed only the next time I do something in any of the
cells of this spreadsheet.

What do I have to do to make sure my function is executed when I do a
"Filter Show All" from the Data menu.

By the way, I'm using Excel 2003 on Windows 2003.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Volatile function & Filter Show All

Thanks for your help.
I've tried the proposed example at
http://j-walk.com/ss/excel/usertips/tip044.htm and I have the same issue.
When you do a Show All from the Data menu, the function is not executed.


"ryguy7272" wrote:

Maybe this:
http://j-walk.com/ss/excel/usertips/tip044.htm

Or, this:
http://www.contextures.com/xlautofilter03.html

Regards,
Ryan----

--
RyGuy


"Pred" wrote:

I have a function that returns the filter values of a specific cell filter.
My function is called like the following:

=GetFilterValues("B3")

'B3' in an example, it may be any of the cell on which I have a Filter On.

I put "Application.Volatile" in my code to make sure that my function is
executed each time Excel recalculates my spreadsheet.

This works fine but ...

When I have multiple Filters set on my sheet, sometimes instead of undoing
them one by one, I go to the Data menu and I select "Filter Show All". All
my filters are reset but my function is not executed. I still have the
result of the previous execution of my function.

My function is executed only the next time I do something in any of the
cells of this spreadsheet.

What do I have to do to make sure my function is executed when I do a
"Filter Show All" from the Data menu.

By the way, I'm using Excel 2003 on Windows 2003.


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
Today - volatile function dhstein Excel Discussion (Misc queries) 5 May 25th 09 03:12 PM
FILTER FUNCTION DOES NOT SHOW TOTAL RECORDS SELECTED MUSANDAI Excel Worksheet Functions 2 October 18th 07 05:04 PM
is MATCH a volatile function? Dave F Excel Discussion (Misc queries) 3 January 31st 07 07:05 PM
why is the INDIRECT function volatile? Dave F Excel Worksheet Functions 2 October 25th 06 02:10 PM
Making a function somewhat volatile. Bura Tino Excel Programming 3 May 4th 04 08:42 AM


All times are GMT +1. The time now is 04:27 AM.

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"