View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
sub_pop[_3_] sub_pop[_3_] is offline
external usenet poster
 
Posts: 1
Default Excel VBA - Type mismatch during While

What did work is this:

While ActiveCell = ActiveCell.Offset(0, -2)
On Error GoTo Sort
ActiveCell.Offset(0, -3).Select
ActiveCell.Copy
ActiveCell.Offset(0, 4).Select
ActiveCell.PasteSpecial
ActiveCell.Offset(1, -1).Select
Wend
Sort:
Columns("A:E").Select
Selection.Sort Key1:=Range("E1")

Is this a problem? Is there some reason it should not be used? Should
move
Sort:
past End?

Thanks,
Mar

--
Message posted from http://www.ExcelForum.com