
Have something to add to the explanation? Sound off in the comments. , then scrolling down until you reach the You can limit the number of threads used by Excel to recalculate formulas by going to Respectively, this would either run multiple instances of your VBA function for each formula, or recalculate multiple cells simultaneously while your VBA script is running on a single thread. If a VBA function is called from several formulas or if your script generates or forces the recalculation of several formulas, then this should definitely make use of the multi-threaded calculation feature in Microsoft Excel. SuperUser contributor mtone has the answer for us: Is there a way to limit Microsoft Excel’s CPU usage while running VBA functions? I am unable to use my computer during this time and would rather have Excel ‘running in the background’ while using about 50 percent of my CPU’s capacity so that I can continue to do other things.Īny suggestions? My computer’s operating system is Windows 7 Enterprise 64-bit with a 2007 32-bit version of Excel installed on it.

One classic example is reading or parsing text files. There are subtle nuances that are more OS related than not especially where your code may depend on API calls.

The entire set of calculations takes approximately twenty minutes to complete and uses 100 percent of my CPU. For the most part yes though I recommend coding VBA on a Windows machine and then try running on a Mac. Is there a way to limit Microsoft Excel’s CPU usage when it is running? I have a VBA script that calculates a large amount of giant array formulas.

SuperUser reader learningAsIGo wants to know if there is a way to limit Microsoft Excel’s CPU usage while running a VBA script on his computer:
