Sub Macro1()
Dim xR As Range, T, TT, Tr, j%, N&, ARR
ReDim ARR(1 To 2000, 0)
For Each xR In Range([a1], [a65536].End(3))
TT = Split(Replace(Replace(xR, ")", ""), "-0", "-10"), "(")
For Each T In Split(TT(1), ",")
Tr = Split(T & "-" & T, "-")
For j = Tr(0) To Tr(1)
N = N + 1: ARR(N, 0) = TT(0) & Right(j, 1)
Next j
Next
Next
[b1].Resize(N) = ARR
End Sub作者: adrian_9832 時間: 2018-10-5 20:42