My VBA procedure run much slower when another workbook is open

espenskeie

Well-known Member
Joined
Mar 30, 2009
Messages
636
Office Version
  1. 2016
Platform
  1. Windows
Hello

I just wonder if anyone know why my macros run much slower if I have another macro-workbook open? Are there anything in my codes that should affect each other? My workbooks are build at the same basic codes, but all procedures have unique name.

Kind regards
Espen
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hello

I just wonder if anyone know why my macros run much slower if I have another macro-workbook open? Are there anything in my codes that should affect each other? My workbooks are build at the same basic codes, but all procedures have unique name.

Kind regards
Espen
If the other workbooks have a lot of formulas in them and your code does not set calculation to manual at the outset, depending on exactly what the code does, it may be causing the slowdown.
 
Upvote 0
Thanks Joe, I'll take a look at the codes, and maybe I can turn of the automatic calculation in the workbook.

Kind regards
Espen
 
Upvote 0
Thanks Joe, I'll take a look at the codes, and maybe I can turn of the automatic calculation in the workbook.

Kind regards
Espen
Whatever the calculation setting, it applies to ALL open workbooks. Not possible to turn off individual workbooks, but at the end of the code you can turn it back on.
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,395
Members
449,081
Latest member
JAMES KECULAH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top