i cant manage to properly delete a text in multiple cells in a column in Excel. The sheet looks like this:
123 456 7|
123 456 7|
123 456 7|
I just want to get rid of 123 456. (By the way, 123 456 7 are all in one cell)
I think there's an error in my code:
Sub RemoveText()
Dim cell As Range
For Each cell In Range("A1:A3")
cell.Value = Replace(cell.Text, "123 456", "", Count:=2)
Next
End Sub