试试:
1
On Error Goto EH
n = 0
retry:
Put intFn1, lngFn1 * Len(typSort_q) + 1, typSort_q
n = 0
......
Exit Sub
EH:
If Err.Number = 52 Then
n = n + 1
If n > 2 Then
Msgbox intFn1
Else
Resume retry
End If
Else
MsgBox "RunTime error " & Err.Number & ":" & vbcrlf & err.description
End if