question

SivanSivaprakash-2356 avatar image
1 Vote"
SivanSivaprakash-2356 asked AdityaGaekwad-5508 commented

Excel VBA macros are running extremely slow after the 14827.20158 Update

I have an excel file that contain a vba macro. This was working fine until two weeks ago. However, it has slowed significantly after the patch update 14827.20158. Prior the update, the tool used to run in less than 2 minutes. Now it is taking more than 40 minutes to complete. Also noticed that the CPU utilisation spikes to nearly 100% as soon as the macro starts running. Is this caused due to any change included in the patch update?

office-vba-dev
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


Did you also discover what parts or specific operations of the VBA macros appear much slower?


0 Votes 0 ·

I tried to introduce some debug logging to find out which statements were taking time. So, I added some lines to write date time and a debug statement into a worksheet. This time, the macro took 3.5hours.
I tried this in another PC where I had the version before the patch update and the macro completed in just over 1 minute (1m 4s to be precise). So, I think any assignment of a value into a cell is taking time. The logging was very extensive. In every loop, I had a line being written into a debug worksheet. But, I wasnt expecting the performance to degrade to this level. The 1m 4s, I mentioned above also included exactly the same number of debug log entries

1 Vote 1 ·

Hi Sivan,

I have the same issue as well! Once you identified that assigning a value into a cell takes time, how did you go about fixing this?

Thank you,
Aditya

0 Votes 0 ·

0 Answers