Problem with INDIRECT in event handlers

frajaro

New Member
Joined
Mar 13, 2002
Messages
13
When I use the event procedure Worksheet_calculate in a worksheet containing INDIRECT funtions, the handler event activates WS_change instead of WS_calculate.

Could you help me to solve this problem?
thanks in advance.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
The Calculate event isn't the best method to use, because it can slow you down a lot. So, it's "kind" of a nice thing to use the Change event instead... why can't you use the Change, or in other words, why do you need to use the Calculate event ?
 
Upvote 0
Thanks Juan Pablo,

I use the event calculate to run a macro -related to graphics- every time I do a selection of a pivot table and this doesn't work with change event. Maybe you can give me an advice on a different method to run macros connected with pivot tables.
On the other hand, I would prefer not to have the macro run in any change in the worksheet but only when it is really necessary, that is, when a new calculation is made.

regards
Francisco
 
Upvote 0

Forum statistics

Threads
1,213,482
Messages
6,113,916
Members
448,533
Latest member
thietbibeboiwasaco

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top