Error Showing

sassriverrat

Well-known Member
Joined
Oct 4, 2018
Messages
655
So I've got some simple error coding
Code:
 On Error GoTo Help
Exit Sub
Help: resp = MsgBox "Sorry for the error! Would you like to see the help menu?", vbyesno
if resp = vbyes then Call userform17
if resp = vbno then exit sub
End if 
End Sub

Anyway, I'd like to have a button in userform17 that would show the user exactly where the problem was (like a debug I guess) without stopping the code (assuming because the user doesn't know how to handle the vba so really-
I'd like a button that will show the problem and a second button that will take a screenshot of the line of error without showing the vba window- basically so a screenshot can be sent to me (or someone that's fixing the code) without messing up the user...

thanks

i'm not sure what a debug.print looks like
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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