AS400Excel
New Member
- Joined
- Jan 27, 2005
- Messages
- 12
I want to delete the last character from "each cell in a column". Can some one provide the code for this kind of a macro?.
Thanks
Thanks
Sub test()
On Error Resume Next
For Each cel In Range("A1:A10")
myVal = cel.Value
cel.Value = Left(myVal, Len(myVal) - 1)
Next cel
End Sub