Kaip galite apriboti "Microsoft Excel" procesoriaus naudojimą vykdant VBA funkcijas?

Turinys:

Kaip galite apriboti "Microsoft Excel" procesoriaus naudojimą vykdant VBA funkcijas?
Kaip galite apriboti "Microsoft Excel" procesoriaus naudojimą vykdant VBA funkcijas?

Video: Kaip galite apriboti "Microsoft Excel" procesoriaus naudojimą vykdant VBA funkcijas?

Video: Kaip galite apriboti
Video: Kaip sužinoti, ar jus seka Jūsų telefonono pagalba? - YouTube 2024, Balandis
Anonim
Jei turite "VBA" funkciją, kuri paverčia "Microsoft Excel" centrinio procesoriaus žiogo gyvūnais, ar įmanoma sumenkinti dalykus, kad galėtumėte ir toliau naudotis savo kompiuteriu kitoms veikloms, kol baigsis "Excel"? Šiandien "SuperUser Q &A" žinutė ateina į pagalbą, kad padėtų nusivylusiam skaitytuvui "Excel" valdyti.
Jei turite "VBA" funkciją, kuri paverčia "Microsoft Excel" centrinio procesoriaus žiogo gyvūnais, ar įmanoma sumenkinti dalykus, kad galėtumėte ir toliau naudotis savo kompiuteriu kitoms veikloms, kol baigsis "Excel"? Šiandien "SuperUser Q &A" žinutė ateina į pagalbą, kad padėtų nusivylusiam skaitytuvui "Excel" valdyti.

Šiandieninė klausimų ir atsakymų sesija pateikiama su "SuperUser" - "Stack Exchange", bendruomenės valdoma Q & A grupių asociacija.

Alien Warrior paveikslėlis mandagumo Clker.com.

Klausimas

"SuperUser" skaitytuvas learningAsIGo nori žinoti, ar yra būdas apriboti "Microsoft Excel" procesoriaus naudojimą, paleidžiant "VBA" scenarijų savo kompiuteryje:

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.

Ar yra būdas apriboti "Microsoft Excel" procesoriaus naudojimą, kai veikia VBA funkcijos?

Atsakymas

"SuperUser" autorius mtone atsakė mums:

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

Ar turite ką nors įtraukti į paaiškinimą? Garsas išjungtas komentaruose. Norite skaityti daugiau atsakymų iš kitų "Tech-savvy Stack Exchange" vartotojų? Patikrinkite visą diskusijų temą čia.

Rekomenduojamas: