Bagaimana Anda Membatasi Penggunaan CPU Microsoft Excel Saat Menjalankan Fungsi VBA?

Daftar Isi:

Bagaimana Anda Membatasi Penggunaan CPU Microsoft Excel Saat Menjalankan Fungsi VBA?
Bagaimana Anda Membatasi Penggunaan CPU Microsoft Excel Saat Menjalankan Fungsi VBA?

Video: Bagaimana Anda Membatasi Penggunaan CPU Microsoft Excel Saat Menjalankan Fungsi VBA?

Video: Bagaimana Anda Membatasi Penggunaan CPU Microsoft Excel Saat Menjalankan Fungsi VBA?
Video: MODEL YANG TAK TERIMA DENGAN PENUAAN MELAKUKAN HAL MENGERIKAN DARI PADA SUSUK - ALUR CERITA FILM - YouTube 2024, April
Anonim
Jika Anda memiliki fungsi VBA yang mengubah Microsoft Excel menjadi hewan pengunyah CPU, apakah mungkin untuk menjinakkan semuanya sehingga Anda dapat terus menggunakan komputer Anda untuk kegiatan lain saat Excel selesai? Pos SuperUser Super & Servis hari ini hadir untuk membantu pembaca yang frustrasi agar Excel kembali terkendali.
Jika Anda memiliki fungsi VBA yang mengubah Microsoft Excel menjadi hewan pengunyah CPU, apakah mungkin untuk menjinakkan semuanya sehingga Anda dapat terus menggunakan komputer Anda untuk kegiatan lain saat Excel selesai? Pos SuperUser Super & Servis hari ini hadir untuk membantu pembaca yang frustrasi agar Excel kembali terkendali.

Sesi Tanya & Jawab Hari ini hadir untuk memberi kami SuperUser - subdivisi Stack Exchange, pengelompokan situs web Q & A berbasis komunitas.

Clip art prajurit Alien sopan santun Clker.com.

Pertanyaan

Pembaca super User reader, Asigo ingin mengetahui apakah ada cara untuk membatasi penggunaan CPU Microsoft Excel saat menjalankan skrip VBA di komputernya:

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.

Apakah ada cara untuk membatasi penggunaan CPU Microsoft Excel saat menjalankan fungsi VBA?

Jawabannya

Penyumbang super User mtone memiliki jawaban untuk kami:

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

Memiliki sesuatu untuk ditambahkan ke penjelasan? Bicaralah di komentar. Ingin membaca lebih banyak jawaban dari pengguna Stack Exchange yang paham teknologi lainnya? Lihat diskusi lengkap di sini.

Direkomendasikan: