"pause" recalc while user enters data into combo b

Barq

New Member
Joined
Nov 16, 2005
Messages
18
Hi!

I have a quick question:
I have a worksheet with a combo box that users can select values or enter a value. This value is then passed to a UDF that does a bunch of lookups. There are about 200 cells in the sheet that calls this UDF.

My problem is that everytime I try to enter a value (they are strings) into the combo box, Excel recalcualtes after EVERY alphabet that I enter!!!! This makes the spreadsheet really slow... any suggestions on how I can make Excel wait until I hit enter or something?

Thanks!!!

(BTW, my UDF uses application.volatile set to true , but when I tried to pass the linked cell of the combo box to the UDF instead and the same problem remains)
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

BrianB

Well-known Member
Joined
Feb 17, 2003
Messages
8,127
This suggests that you have some code using the 'Private Sub ComboBox1_Change()' event. Need to check and change it to a button.
 

Barq

New Member
Joined
Nov 16, 2005
Messages
18
Hi Brian,

the codes are in the worksheet where the combobox is. it's a UDF that returns a value that is found on a bunch of other sheets based on the value return by the combobox.

There is nothing in the combobox change event sub. Although I have tried to use the lenght of the string to set application.calculation to false and then back to true again. But since some of my strings are only 3 characters long, this doesn't really solve the problem for longer strings.


Thanks.
 

Barq

New Member
Joined
Nov 16, 2005
Messages
18
Hi,

anyone who can help with this question? any suggestions would be much appreciated!!

Thanks,
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,996
Messages
5,834,785
Members
430,322
Latest member
excelnoobnoob

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
Top