Configuration: Windows XP Internet Explorer 6.0
Dim cCell As Object 'Okay so what you need to do is create an object to work with the current cell so
Cells (1, "A").Select 'Then make sure you are starting at the very top so For Each cCell In Range (Cells(1, "A"), Cells(1, "A").End(xlDown)) 'Then go through each cell in column A If InStr(1, cCell.Value, "Defendant Address: ") > 0 Then ' Search for Defendant Address: cCell.Offset(0, 1).Value = Mid(cCell.Value,19 , Len(cCell.Value)) 'copy name to next column cell cCell.Offset(0, 2).Value = cCell.Offset(1,0).Value 'May need to increase as per how many rows gap between . . . . . End If Next cCell This should set you on your way, just need to add another IF block to catch the blank addresses fairly straight foward.
|
Results for
Results for
Results for
Results for