Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect([g7:g65], Target) Is Nothing And Target.Count = 1 Then
codes = Split(Target, ":")
For i = LBound(codes) To UBound(codes)
nature = Application.VLookup(Val(codes(i)), [codesMip], 2, False)
If Not IsError(nature) Then
tmp = tmp & nature & ","
End If
Next i
'Application.EnableEvents = False
If tmp <> "" Then
Target.Offset(, 1) = Left(tmp, Len(tmp) - 1)
Else
Target.Offset(, 1) = ""
End If
'Application.EnableEvents = True
End If
End Sub