方法一:
Sub test0818_1()
Dim xR As Range, T$
For Each xR In Range([A2], [A65536].End(xlUp))
T = Split(xR & "//", "//")(1)
T = Split(T & "/", "/")(0)
If T <> "" Then xR(1, 2) = T
Next
End Sub
方法二:
Sub test0818_2()
[A:A].Copy [B:B]
[B:B].Replace "*//", "", Lookat:=xlPart
[B:B].Replace "/*", "", Lookat:=xlPart
End Sub作者: c_c_lai 時間: 2016-8-18 10:30