Consider the following code: Dim pnt As Variant Dim obj As AcadObject Do On Error Resume Next ThisDrawing.Utility.GetEntity obj, pnt If Err.Number = 0 Then 'Do something meaningful - something was selected .................. Else 'didn't select anything On Error GoTo errhandler Exit Do End If Loop I have found that Err.Number is -2147352567 both when user clicked on the empty space or pressed Enter key. Is it possible to distinquish between these 2 cases ? What I am trying to accomplish is to exit from the loop ONLY if Enter key was pressed but not when user clicked on the empty space.