aa = 0
For j = num To i + 1 Step -1
If Mid(Worksheets(j).Range("i11").Value, pos, 4) = Mid(Worksheets(i).Range("i11").Value, pos, 4) Then
aa = aa + 1
End If
Next j
If aa > 0 Then
Worksheets(i).Name = "##" & Mid(Worksheets(i).Range("i11").Value, pos, 4) & "(" & A & ")"
Else
Worksheets(i).Name = "##" & Mid(Worksheets(i).Range("i11").Value, pos, 4)
End If
End If