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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
17,907
Office Version
  1. 365
  2. 2010
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
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.
 

espenskeie

Well-known Member
Joined
Mar 30, 2009
Messages
636
Office Version
  1. 2016
Platform
  1. Windows
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
 

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
17,907
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,139
Messages
5,835,638
Members
430,373
Latest member
swartzfeger

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
Top