So I was testing a simple program to find the letter e and remove it from the cell. Except that Variable A doesn't work even though Cells(1,1) does.
Sub remove()
A = Cells(1, 1)
pos = InStr(A, "e")
'A works for pos though I don't know why
'A.characters(pos,1).delete'
'The above doesn't work for some reason'
Cells(1, 1).Characters(pos, 1).delete
End Sub
Things that I have tried
- Dim A as Range
- Using Range
Also Sorry for not being more specific about my problem. I'm not sure about the terminology behind VBA and coding in general though I'm working on it