Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 151
Default worksheet_calculate

Hi there,

I have a workbook (Excel 2003) with some code in it that colours a cell when
a filter is applied, so as to more easily identifiy which columns are
filtered.
This works fine and the colour is applied as soon as the filter is.

the routine for highlighting the applied filters is called from these events
Workbook_SheetCalculate
Worksheet_SelectionChange
Worksheet_Calculate

Anyway, I wanted to apply the same thing to a new workbook, but in this case
the colours are only applied when a change in selection is made.

I stepped through the code in the workbook that works and identified that it
is the Worksheet_Calculate that changes the colours as soon as the filter is
applied. However, this event is not run in the new workbook.

Does anyone know why Worksheet_Calculate is run when a filter is applied in
one workbook and not in another?

Many thanks in advance
Libby x


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 533
Default worksheet_calculate

In experimenting now, with a very simple example in Excel 2003, I find that
a calc only occurs when the autofilter criterion is changed if a formula
exists that references a cell in the table.

--
Jim
"Libby" wrote in message
...
Hi there,

I have a workbook (Excel 2003) with some code in it that colours a cell
when
a filter is applied, so as to more easily identifiy which columns are
filtered.
This works fine and the colour is applied as soon as the filter is.

the routine for highlighting the applied filters is called from these
events
Workbook_SheetCalculate
Worksheet_SelectionChange
Worksheet_Calculate

Anyway, I wanted to apply the same thing to a new workbook, but in this
case
the colours are only applied when a change in selection is made.

I stepped through the code in the workbook that works and identified that
it
is the Worksheet_Calculate that changes the colours as soon as the filter
is
applied. However, this event is not run in the new workbook.

Does anyone know why Worksheet_Calculate is run when a filter is applied
in
one workbook and not in another?

Many thanks in advance
Libby x




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
Worksheet_Calculate tmkkoservo Excel Programming 1 August 20th 07 04:08 PM
worksheet_calculate enyaw Excel Discussion (Misc queries) 2 January 26th 07 01:16 PM
worksheet_calculate enyaw Excel Discussion (Misc queries) 0 January 26th 07 08:14 AM
Worksheet_calculate() Alex Excel Programming 1 August 30th 05 10:09 PM
worksheet_calculate **help** tommyboy Excel Programming 2 June 29th 04 08:33 AM


All times are GMT +1. The time now is 02:19 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"