View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
somethinglikeant somethinglikeant is offline
external usenet poster
 
Posts: 94
Default take off the first two letters

somethinglikethis:-

Sub ShortenByTwo()

Range("A1").select
Do Until IsEmpty(ActiveCell)
ActiveCell.Value = (mid(Activecell.value,3,len(activecell.value)-2)
Activecell.offset(1,0).select
Loop

Range("A1").select
End Sub



'somethinglikeant