VBA Error Handling

Inside the VBA function declare (On Error GoTo Name) at the end of the function code (Name: MsgBox Err.Description)