问题
I'm using the code which indicated in the stackoverflow.com/a reference.
As I was commented, the above procedure included a For Next
which needs more times repeat.
The performance is low while:
(I was monitored the Task Manager's, Performance tab (CPU utilization) and the processes tab together.)
The overall CPU usage is -approximately- lower than 25%.
Why the running procedure have not using more CPU resources to increase performance and running faster?
Is it possible for us to perform consuming more CPU usage (100%) for increase the running software performance?
Any guides are appreciated.
回答1:
VBA is single-threaded, so it will always use only a single core.
来源:https://stackoverflow.com/questions/48079894/relation-between-running-a-program-faster-and-cpu-usage