Dim Num(100, 1) As String
Open "C:\1.txt" For Input As #1
While EOF(1) = False
conter = conter + 1
Input #1, a
Input #1, b
Num(conter, 0) = a
Num(conter, 1) = b
Wend
Close #1
Open "C:\2.txt" For Append As #1
For i = 1 To conter
TempNum = Left(Num(i, 0), Len(Num(i, 0)) - 1)
s = 0
For ii = i To conter
If TempNum = Left(Num(ii, 0), Len(Num(ii, 0)) - 1) Then
s = s + 1
End If
Next ii
If s = 10 Then
Print #1, TempNum & vbTab & CStr(Val(Num(i, 1)) + 1) & "-" & CStr(Val(Num(i, 1)) + 1)
i = i + 9
Else
Print #1, Num(i, 0) & vbTab & CStr(Num(i, 1)) & "-" & CStr(Num(i, 1))
End If
Next i
Close #1