cameronfraser
Programmer
In Excel 2000 While in break mode and stepping through a macro, the following message appears when I hit a line of code:
"Can't Enter Break Mode at this time". The only options I get are the buttons "Continue", "End" or "Help". The "Debug" button is inactive. (As usuall the Help button provides no useful help).
Here are the lines of code that generate this message:
Application.DisplayAlerts = False
Workbooks(Trust_Workbook).Worksheets("Template
PVIT".Delete
Application.DisplayAlerts = True
The code deleting the worksheet causes the "Can't Enter Break Mode at this time" message"
When just these 3 lines of code are run on their own the Can't break message does not occur.
What is happening? What situation in the design and running of a macro could cause this problem?
Thanks
What is happening?
"Can't Enter Break Mode at this time". The only options I get are the buttons "Continue", "End" or "Help". The "Debug" button is inactive. (As usuall the Help button provides no useful help).
Here are the lines of code that generate this message:
Application.DisplayAlerts = False
Workbooks(Trust_Workbook).Worksheets("Template
PVIT".Delete
Application.DisplayAlerts = True
The code deleting the worksheet causes the "Can't Enter Break Mode at this time" message"
When just these 3 lines of code are run on their own the Can't break message does not occur.
What is happening? What situation in the design and running of a macro could cause this problem?
Thanks
What is happening?