VBA from WB gets tangled with any other WB that is open

picklefactory

Well-known Member
Joined
Jan 28, 2005
Messages
508
Office Version
  1. 365
Platform
  1. Windows
Good morning all
Before I start posting tons of code, I thought I'd keep the question basic initially, in case there is a simple solution/issue I should be looking for. (Most of my questions tend to be, like me, rather simple)
OK, I have a WB that works fine when it is the only Excel file currently open on a pc. However, if there is any other, totally unrelated WB currently also open on the same machine it seems to get tangled and doesn't fully function or close cleanly. As it is a WB that is used across multiple machines, I have it closing down once the task is completed and I am also using an OnTime event to close it down if it is idle for an excessive period.
Is there a common issue or tactic I should be using to keep the code in this WB exclusive to this WB?
Cheers folks
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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