Hi,
Here is some VBA code that should get rid of the 2nd line.
Sub Delete2ndLine()
' Define Variables
Dim LastCol, LastRow, i, j, k As Long
' Get LastCol and LastRow with Data
LastCol = Cells(1, Columns.Count).End(xlToLeft).Column
LastRow = Cells(Rows.Count, 1).End(xlUp).Row
' Go through data and delete 2nd line, if there is one
For i = 1 To LastRow
For j = 1 To LastCol
k = InStr(Cells(i, j), Chr(10)) -1
If (k > 0) Then Cells(i, j) = Left(Cells(i, j), k)
Next j
Next i
' Give Completed Message
MsgBox "Complete."
End Sub
Hope that helps,
Dan
Bookmarks