Debiru,
prova in questo modo:
codice:Private Sub Command1_Click() On Error GoTo ErrHandler If Len("ciao") > 0 <> "" Then MsgBox "Ciao" End If ErrHandler: If Err.Number <> 0 Then MsgBox Err.Description & Chr(13) _ & "Si è verificato un errore nella procedura ...", vbInformation, "...." Err.Clear End If End Sub