Here is a quick shot at the code.
Sub DoTheFunkeyStuff()
Dim x As Long
Dim CL As Range
With Sheets("sheet1")
For Each CL In Range("A2:A" & .Cells(.Rows.Count, "A").End(xlUp).Row)
If CL.Value = "Business Street" And CL.Offset(-1, 0).Value = "Business Street" Then
.Range("G" & (.Cells(.Rows.Count, "F").End(xlUp).Row)).Value = CL.Offset(, 1).Value
GoTo Bail
End If
Select Case CL.Value
Case "Full Name"
.Range("C" & (.Cells(.Rows.Count, "C").End(xlUp).Row + 1)).Value = CL.Offset(, 1).Value
Case "Job Title"
.Range("D" & (.Cells(.Rows.Count, "D").End(xlUp).Row + 1)).Value = CL.Offset(, 1).Value
Case "Company"
.Range("E" & (.Cells(.Rows.Count, "E").End(xlUp).Row + 1)).Value = CL.Offset(, 1).Value
Case "Business Street"
.Range("F" & (.Cells(.Rows.Count, "F").End(xlUp).Row + 1)).Value = CL.Offset(, 1).Value
Case "Business City, State"
.Range("H" & (.Cells(.Rows.Count, "H").End(xlUp).Row + 1)).Value = CL.Offset(, 1).Value
Case "Business Phone"
.Range("I" & (.Cells(.Rows.Count, "I").End(xlUp).Row + 1)).Value = CL.Offset(, 1).Value
Case "Business Fax"
.Range("J" & (.Cells(.Rows.Count, "J").End(xlUp).Row + 1)).Value = CL.Offset(, 1).Value
Case "Web Page"
.Range("K" & (.Cells(.Rows.Count, "K").End(xlUp).Row + 1)).Value = CL.Offset(, 1).Value
Case "E-Mail Address"
.Range("L" & (.Cells(.Rows.Count, "L").End(xlUp).Row + 1)).Value = CL.Offset(, 1).Value
Case Else
MsgBox "Barney Rubble"
End Select
Bail:
Next CL
.Columns.AutoFit
End With
End Sub
there is a added column to deal with post office address. It look ok too me though i didnt look to close
Bookmarks