Sub limonet()
Dim Ms, Arr() As Variant, i%, j%, Brr() As Variant
S$ = "富勒烯-安肌瓶组合,氐殊-氐殊原精华素2.2ml/支(1),AOPT超光子治疗(全面部,LTL模式)" & ","
With CreateObject("vbscript.regexp")
.Pattern = ".*?(\(.*?\))?,"
.Global = True
Set Ms = .Execute(S)
For Each M In Ms
i = i + 1
ReDim Preserve Arr(1 To i)
Arr(i) = Left(M.Value, Len(M.Value) - 1)
Next M
End With
i = 0
For j = 1 To 4
i = i + 1
ReDim Preserve Brr(1 To i)
Brr(i) = Filter(Arr, Left(Cells(j + 1, "C"), 2))(0)
Next j
[a2].UnMerge
[a2].Resize(4, 1) = Application.Transpose(Brr)
End Sub |