why does Excel not report VBA run-time errors

OaklandJim

Well-known Member
Joined
Nov 29, 2018
Messages
857
Office Version
  1. 365
Platform
  1. Windows
I cannot figure out how to get Excel to tell me when there is a run-time error in my code. Code below does not throw up an error message.

VBA Code:
Sub Junk()

With [Stuff].[Crap]

End With

If [Stuff].[Crap] Then Call Barf

End Sub

I BELIEVE that I have Options set correctly?
 

Attachments

  • VBAOptions.png
    VBAOptions.png
    17.2 KB · Views: 11

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
That should raise an error when you run it.
 
Upvote 0
Indeed, that junk code should cause an error. I tried junk code in a new workbook and got error message. But in one specific workbook errors WERE not reported. BUT, after reopening the file error messaging works. That seems odd to me but hey, the guts of Excel have a mind of their own.
 
Upvote 0

Forum statistics

Threads
1,225,743
Messages
6,186,777
Members
453,370
Latest member
juliewar

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