怎樣去掉excel表格中的英文、標點符號、數字等,只留下漢字?緊急!
題目:
怎樣去掉excel表格中的英文、標點符號、數字等,只留下漢字?緊急!
CX2543(劉成)85
上述單元格中,只提取中文漢字?
解答:
Sub aa()
Dim x,y,lChar,i,bb(),p,j,m
x = ActiveCell.Row
y = ActiveCell.Column
p = Len(Cells(x,y).Value)
ReDim bb(1 To p)
For i = 1 To p
bb(i) = Mid(Cells(x,y).Value,i,1)
Next
For j = 1 To p
lChar = 65536 + Val(Asc(bb(j)))
If lChar >= 45217 And lCha
添加新評論