Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Error Trapping
Can someone tell me why the following falls over with a runtime error
when the clipboard is empty (ie I do not get the msgbox) On Error Resume Next ActiveSheet.Paste If Err Then MsgBox "Nothing to paste!": Err.Clear Thanks, Gary |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Error Trapping
Do you have Break on All Errors set under Tools, Options, General in the
VBE? -- Jim "gazza67" wrote in message ups.com... | Can someone tell me why the following falls over with a runtime error | when the clipboard is empty (ie I do not get the msgbox) | | On Error Resume Next | ActiveSheet.Paste | If Err Then MsgBox "Nothing to paste!": Err.Clear | | Thanks, | Gary | |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Error Trapping
That was it, Thanks so much!!
Gary On Sep 7, 2:44 am, "Jim Rech" wrote: Do you have Break on All Errors set under Tools, Options, General in the VBE? -- Jim"gazza67" wrote in message ups.com... | Can someone tell me why the following falls over with a runtime error | when the clipboard is empty (ie I do not get the msgbox) | | On Error Resume Next | ActiveSheet.Paste | If Err Then MsgBox "Nothing to paste!": Err.Clear | | Thanks, | Gary | |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Trapping #VALUE! error | Excel Discussion (Misc queries) | |||
trapping charts event | Charts and Charting in Excel | |||
Error Trapping from WSH | Excel Discussion (Misc queries) | |||
error trapping | Excel Discussion (Misc queries) | |||
trapping for printer problems | Charts and Charting in Excel |