Kā jūs ierobežojat Microsoft Excel CPU izmantošanu, kad darbojas VBA funkcijas?

Satura rādītājs:

Kā jūs ierobežojat Microsoft Excel CPU izmantošanu, kad darbojas VBA funkcijas?
Kā jūs ierobežojat Microsoft Excel CPU izmantošanu, kad darbojas VBA funkcijas?

Video: Kā jūs ierobežojat Microsoft Excel CPU izmantošanu, kad darbojas VBA funkcijas?

Video: Kā jūs ierobežojat Microsoft Excel CPU izmantošanu, kad darbojas VBA funkcijas?
Video: Tony Robbins: STOP Wasting Your LIFE! (Change Everything in Just 90 DAYS) - YouTube 2024, Aprīlis
Anonim
Ja jums ir VBA funkcija, kas pārvērš Microsoft Excel par CPU munching beast, vai ir iespējams uzveikt lietas, lai jūs varētu turpināt izmantot datoru citiem darbiem, kamēr Excel ir pabeigts? Šodienas SuperUser Q & A post nāk glābšana, lai palīdzētu neapmierinātam lasītājam iegūt Excel atpakaļ kontrolē.
Ja jums ir VBA funkcija, kas pārvērš Microsoft Excel par CPU munching beast, vai ir iespējams uzveikt lietas, lai jūs varētu turpināt izmantot datoru citiem darbiem, kamēr Excel ir pabeigts? Šodienas SuperUser Q & A post nāk glābšana, lai palīdzētu neapmierinātam lasītājam iegūt Excel atpakaļ kontrolē.

Šodienas jautājumu un atbilžu sesija mums priecājas par SuperUser - Stack Exchange dalību, kas ir kopienas vadīta Q & A tīmekļa vietņu grupa.

Svešzemju karavīrs klipkopu pieklājīgi no Clker.com.

Jautājums

SuperUser lasītājs learningAsIGo vēlas uzzināt, vai ir veids, kā ierobežot Microsoft Excel CPU lietojumu, strādājot VBA skriptu savā datorā:

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. The entire set of calculations takes approximately twenty minutes to complete and uses 100 percent of my CPU. 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.

Any suggestions? My computer’s operating system is Windows 7 Enterprise 64-bit with a 2007 32-bit version of Excel installed on it.

Vai ir veids, kā ierobežot Microsoft Excel procesora lietojumu, strādājot VBA funkcijas?

Atbilde

SuperUser ieguldītājs Mtone mums ir atbilde:

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. 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.

You can limit the number of threads used by Excel to recalculate formulas by going to Options and selecting the Advanced Section, then scrolling down until you reach the Formulas sub-section.

Image
Image

Vai kaut ko pievienot paskaidrojumam? Skatieties komentāros. Vēlaties lasīt citas atbildes no citiem tehnoloģiju savvy Stack Exchange lietotājiem? Šeit skatiet pilnu diskusiju pavedienu.

Ieteicams: