View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
AuthorizedUserPF[_2_] AuthorizedUserPF[_2_] is offline
external usenet poster
 
Posts: 5
Default Delete characters in cell

Hello

I have a cell containing characters in A1
The Characters are right aligned. I want to delete the righmost 6 characters
in the cell.
I am trying something like

Sub Remove_Characters()
Anystring = Range("a1")
MyStr = Right(Anystring,6)
MyStr Delete
End Sub

It isn't working. Am I using Delete in the correct context?

Thanks
I am running Win XP Pro and Excel Office XP