Problems with Before Close

dcoledc

Active Member
Joined
May 6, 2010
Messages
403
I have a workbook that will open another workbook as soon as it is opened if a checkbox is checked. I also have before close procedures in both workbooks.

I have noticed that if I do not open a new workbook on open with the checkbox, wb2 will run its own before close procedures when the red x is hit. However, if I have a new workbook open immediately via the checkbox, when I hit the red x from wb2, wb1's before close procedures are run.

Why and how can I fix it?

I hope the way I wrote that doesn't make it sound like I think the problem is with the checkbox. I don't believe it has anything to do with that. I believe it has to do how the events are run.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,947
Latest member
Gerry_F

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