说出这个词是 qwerty 。之前:
选择您要处理的单元格并运行此短宏:
Sub ytrewq()
Dim qwerty As String, r As Range
Dim v As String
qwerty = " qwerty "
For Each r In Selection
v = r.Text
If InStr(1, v, qwerty) > 0 Then
r.Value = Split(v, qwerty)(0)
r.Offset(0, 1).Value = Split(v, qwerty)(1)
End If
Next r
End Sub
实现: