|
将中文的一到九替换为0:
Sub Macro10()
For i = 0 To 9
Cells.Replace What:=Application.ExecuteExcel4Macro("numberstring(" & i & "" & "," & "1)"), Replacement:="0"
Next i
End Sub
如果是①到⑨
又该如何替换呢???
- Sub wayy()
- On Error Resume Next
- arr = Array("①", "②", "③", "④", "⑤", "⑥", "⑦", "⑧", "⑨")
- For i = 0 To 8
- Cells.Replace What:=arr(i), Replacement:=""
- Next
- End Sub
复制代码
|
|