Turn off UserDefined Function

mahmed1

Well-known Member
Joined
Mar 28, 2009
Messages
2,302
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Guys,

I have a workbook where i have several columns with user defined functions..

I Often need to change Cell A1 to another value and then press and update button to retrieve some data from Access

now each time i change this cell excel calculates and it takes ages

what i want to do is turn off the user defined function calculation when i change this cell

press the update button
Turn cals back on

calculation manual doesn’t turn it off

hoping someone guide me the best work around
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Is there a worksheet_change event?
 
Upvote 0
What is your Update code?
In your desired result, the UDFs will recalculate when you turn calculation back on.
If the Update code is putting a value in one cell, value in another cell, value in a third cell etc... That will trigger many calcuations.
If it could be re-written to put all the values in place at one time
Code:
' e.g.

Range("A1:A3").Value = someArray

'vs

Range("A1").Value = someValue
Range("A2").Value = otherValue
Range("A3").Value = thirdValue

That would speed things up.
 
Upvote 0
Hi I have erlang functions in cells D2:D52

the functions point towards a cell on that row ie A2:A52 that changes - ie incoming calls etc

All the update does it goes to my access data base and replaces A2:A52 with new call data which then changes the cells in D2:D52

thisworkbook.connections(“UpdateCallInfo”).refresh is the update code

this updates the table and the erlang functions. Get calculated each time

i tried to turn off calculation
Refresh table
Turn back on but it still takes long
 
Upvote 0
A2:A52 have lookup formula that points to the refreshed table.
 
Upvote 0

Forum statistics

Threads
1,215,459
Messages
6,124,947
Members
449,198
Latest member
MhammadishaqKhan

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