如何删除excel-vba中的字符?
How to delete character in excel-vba?
如何删除出现在列的每个单元格中的字符串中的特定字符(如 'u')?
你可以试试这个:
Public Sub replaceChar()
'Looping from row 1 to 5000, you can modify 50000 to what you want.
For row = 1 To 5000 Step 1
'Replace character in all cell from first column
Sheets("Sheet4").Cells(row, 3).Value = Replace(Sheets("Sheet4").Cells(row, 3).Value, "u", "")
Next row
End Sub
如何删除出现在列的每个单元格中的字符串中的特定字符(如 'u')?
你可以试试这个:
Public Sub replaceChar()
'Looping from row 1 to 5000, you can modify 50000 to what you want.
For row = 1 To 5000 Step 1
'Replace character in all cell from first column
Sheets("Sheet4").Cells(row, 3).Value = Replace(Sheets("Sheet4").Cells(row, 3).Value, "u", "")
Next row
End Sub