My VBA procedure run much slower when another workbook is open

espenskeie

Well-known Member
Joined
Mar 30, 2009
Messages
632
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
 

Some videos you may like

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
17,386
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
632
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,386
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,370
Messages
5,595,770
Members
414,017
Latest member
surajks

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