Recalculation when changing filter- why/when?

mikecroom

New Member
Joined
Oct 8, 2010
Messages
47
I am using the function GetAdsprop from Query Active Directory from Excel. I have it stored as an Add-In.
I have a long column of Windows IDs and use GetAdsprop to get the associated email address of each one. Each lookup takes quite a long time.

Every time I change the filtering all of the GetAdsProp seem to recalculate.

Can anyone explain to me the rules for when filtering triggers a recalculation and whether it is possible to avoid it.
I have no volatile functions that I know of and GetAdsProp does not declare itself as volatile

I am on Excel 2007 in this instance

Mike
 

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
Andrew,

Would setting the Calculate option to manual resolve Mike's problem or are volatile functions always 'auto calculated'?

Regards
 
Upvote 0


Thank you once again Andrew.
I didn't realise there were volatile actions as well as volatile functions.
Just at the moment I can't see why changing autofilter should be volatile - but I expect there is a good reason.

And the article explains why there was a big recalc on workbook open. The UDF was in an Add-In.

If I get very motivated I might turn the function into a subroutine to process a whole array at one time and see if that speeds things up.
I am not a fan of manual calculation

Mike
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,245
Members
448,555
Latest member
RobertJones1986

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