|
可以尝试下面的代码。
- Sub 整理微信好友()
- Application.ScreenUpdating = False
- Dim arr
- Dim i As Long
- arr = Sheets(1).[A1].CurrentRegion
- For i = UBound(arr) To 1 Step -1
- '删除不含名字的行
- If InStr(arr(i, 1), "nickname") = 0 Then Rows(i).Delete
- Next
- With Sheets(1).[A1].CurrentRegion
- '清理标签
- .Replace What:="<*>", Replacement:="", LookAt:=xlPart, _
- SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
- ReplaceFormat:=False
- '删除空格
- .Replace What:=" ", Replacement:="", LookAt:=xlPart, _
- SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
- ReplaceFormat:=False
- End With
- Application.ScreenUpdating = True
- End Sub
复制代码
|
评分
-
1
查看全部评分
-
|