Sub arrange_cols()
Rows("5:5").Select
Cells.Find(What:="LNAME", After:=ActiveCell, LookIn:=xlValues, Lookat:=xlPart, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False, searchformat:=False).Activate
cellcol = ActiveCell.Column
Range(Cells(5, cellcol), Cells(5, cellcol).End(xlDown)).Copy
Range("O5").Select
ActiveSheet.Paste
Rows("5:5").Select
Cells.Find(What:="FNAME", After:=ActiveCell, LookIn:=xlValues, Lookat:=xlPart, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False, searchformat:=False).Activate
cellcol = ActiveCell.Column
Range(Cells(5, cellcol), Cells(5, cellcol).End(xlDown)).Copy
Range("P5").Select
ActiveSheet.Paste
Rows("5:5").Select
Cells.Find(What:="YEAR (####)", After:=ActiveCell, LookIn:=xlValues, Lookat:=xlPart, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False, searchformat:=False).Activate
cellcol = ActiveCell.Column
Range(Cells(5, cellcol), Cells(5, cellcol).End(xlDown)).Copy
Range("Q5").Select
ActiveSheet.Paste
Rows("5:5").Select
Cells.Find(What:="SSN", After:=ActiveCell, LookIn:=xlValues, Lookat:=xlPart, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False, searchformat:=False).Activate
cellcol = ActiveCell.Column
Range(Cells(5, cellcol), Cells(5, cellcol).End(xlDown)).Copy
Range("R5").Select
ActiveSheet.Paste
Rows("5:5").Select
Cells.Find(What:="ENTITY", After:=ActiveCell, LookIn:=xlValues, Lookat:=xlPart, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False, searchformat:=False).Activate
cellcol = ActiveCell.Column
Range(Cells(5, cellcol), Cells(5, cellcol).End(xlDown)).Copy
Range("S5").Select
ActiveSheet.Paste
Columns("O:S").AutoFit
End Sub
Bookmarks