Opening Workbook causes code to stop...

Centrican

Board Regular
Joined
Dec 20, 2006
Messages
130
I've got an interesting problem: my code is opening a workbook, and until today did this no problem. Today the format of the workbook changed so I made modifications to my code; but now the file that is opened appears to cause the code to end.

There is no code within the target workbook, so it's not running anything and stopping that way.

It opens the file, but it does not then reach the next line of code, even if I add multiple break points.


Anyone ever seen anything similar, or have any ideas what may be happening?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Can you please post the code so we can see where it might be bugging?
 
Upvote 0
I have seen the problem, and I may know the cause, but not sure of the resolution.

When the problem occurs, in the book that was opened...
Check to see if it is in "Design Mode"

That will be on the "Control Toolbox" toolbar.
The top left button, if you hover your mouse on it, does it say
"Design Mode"
or
"Exit Design Mode"
 
Upvote 0
Not a bad suggestion; but it wasn't that.

I managed to get the file to open and not exit the code, but it was by closing other excel files I had open. Not sure why that was causing a problem, but at least I have a solution...
 
Upvote 0

Forum statistics

Threads
1,224,558
Messages
6,179,512
Members
452,921
Latest member
BBQKING

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