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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,214,636
Messages
6,120,664
Members
448,976
Latest member
sweeberry

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