Range("A1").Select
Dim OutSH As Worksheet
Set OutSH = Sheets("Data")
Sheets("Exported").Activate
Range("A:A").Replace what:=": ", replacement:=""
Range("A:A").Replace what:=":", replacement:=""
For i = 40 To Cells(Rows.Count, 1).End(xlUp).Row
If Cells(i, 1).Value = "Contact Date/Time" Then
outrow = OutSH.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
End If
Select Case Cells(i, 1).Value
Case "Contact Date/Time"
outcol = WorksheetFunction.Match(Cells(i, 1).Value, OutSH.Rows("1:1"), 0)
OutSH.Cells(outrow, outcol).Value = Cells(i, 4).Value
outcol = WorksheetFunction.Match("DNIS", OutSH.Rows("1:1"), 0)
OutSH.Cells(outrow, outcol).Value = Cells(i, 8).Value
Case "Agent"
outcol = WorksheetFunction.Match(Cells(i, 1).Value, OutSH.Rows("1:1"), 0)
OutSH.Cells(outrow, outcol).Value = Cells(i, 4).Value
Case "Reviewed By"
outcol = WorksheetFunction.Match(Cells(i, 1).Value, OutSH.Rows("1:1"), 0)
OutSH.Cells(outrow, outcol).Value = Cells(i, 4).Value
Case "Evaluation Form"
outcol = WorksheetFunction.Match(Cells(i, 1).Value, OutSH.Rows("1:1"), 0)
OutSH.Cells(outrow, outcol).Value = Cells(i, 4).Value
Case "Professional Manner"
outcol = WorksheetFunction.Match(Cells(i, 1).Value, OutSH.Rows("1:1"), 0)
OutSH.Cells(outrow, outcol).Value = Cells(i, 11).Value
If Cells(i + 3, 1).Value = "Category Comments" Then
OutSH.Cells(outrow, outcol + 1).Value = Cells(i + 3, 5).Value
End If
'Case "Category Comments"
'outcol = WorksheetFunction.Match(Cells(i, 1).Value, OutSH.Rows("1:1"), 0)
'OutSH.Cells(outrow, outcol).Value = Cells(i, 5).Value
Case "Agent Solution Number and Name"
outcol = WorksheetFunction.Match(Cells(i, 1).Value, OutSH.Rows("1:1"), 0)
OutSH.Cells(outrow, outcol).Value = Cells(i, 11).Value
If Cells(i + 3, 1).Value = "Category Comments" Then
OutSH.Cells(outrow, outcol + 1).Value = Cells(i + 3, 5).Value
End If
Case "Customer E-mail"
outcol = WorksheetFunction.Match(Cells(i, 1).Value, OutSH.Rows("1:1"), 0)
OutSH.Cells(outrow, outcol).Value = Cells(i, 11).Value
If Cells(i + 3, 1).Value = "Category Comments" Then
OutSH.Cells(outrow, outcol + 1).Value = Cells(i + 3, 5).Value
End If
Case "Alertness"
outcol = WorksheetFunction.Match(Cells(i, 1).Value, OutSH.Rows("1:1"), 0)
OutSH.Cells(outrow, outcol).Value = Cells(i, 11).Value
If Cells(i + 3, 1).Value = "Category Comments" Then
OutSH.Cells(outrow, outcol + 1).Value = Cells(i + 3, 5).Value
End If
Case "Asks Pertinent Questions"
outcol = WorksheetFunction.Match(Cells(i, 1).Value, OutSH.Rows("1:1"), 0)
OutSH.Cells(outrow, outcol).Value = Cells(i, 11).Value
If Cells(i + 3, 1).Value = "Category Comments" Then
OutSH.Cells(outrow, outcol + 1).Value = Cells(i + 3, 5).Value
End If
Case "Offer Choices and Information"
outcol = WorksheetFunction.Match(Cells(i, 1).Value, OutSH.Rows("1:1"), 0)
OutSH.Cells(outrow, outcol).Value = Cells(i, 11).Value
If Cells(i + 3, 1).Value = "Category Comments" Then
OutSH.Cells(outrow, outcol + 1).Value = Cells(i + 3, 5).Value
End If
Case "Avoids Inside Jargon"
outcol = WorksheetFunction.Match(Cells(i, 1).Value, OutSH.Rows("1:1"), 0)
OutSH.Cells(outrow, outcol).Value = Cells(i, 11).Value
If Cells(i + 3, 1).Value = "Category Comments" Then
OutSH.Cells(outrow, outcol + 1).Value = Cells(i + 3, 5).Value
End If
Case "Expresses Gratitude"
outcol = WorksheetFunction.Match(Cells(i, 1).Value, OutSH.Rows("1:1"), 0)
OutSH.Cells(outrow, outcol).Value = Cells(i, 11).Value
If Cells(i + 3, 1).Value = "Category Comments" Then
OutSH.Cells(outrow, outcol + 1).Value = Cells(i + 3, 5).Value
End If
Case "Level Set"
outcol = WorksheetFunction.Match(Cells(i, 1).Value, OutSH.Rows("1:1"), 0)
OutSH.Cells(outrow, outcol).Value = Cells(i, 11).Value
If Cells(i + 3, 1).Value = "Category Comments" Then
OutSH.Cells(outrow, outcol + 1).Value = Cells(i + 3, 5).Value
End If
Case "Overall Professionalism"
outcol = WorksheetFunction.Match(Cells(i, 1).Value, OutSH.Rows("1:1"), 0)
OutSH.Cells(outrow, outcol).Value = Cells(i, 11).Value
If Cells(i + 3, 1).Value = "Category Comments" Then
OutSH.Cells(outrow, outcol + 1).Value = Cells(i + 3, 5).Value
End If
Case "Contact Score"
outcol = WorksheetFunction.Match(Cells(i, 1).Value, OutSH.Rows("1:1"), 0)
OutSH.Cells(outrow, outcol).Value = Cells(i, 11).Value
If Cells(i + 3, 1).Value = "Category Comments" Then
OutSH.Cells(outrow, outcol + 1).Value = Cells(i + 3, 5).Value
End If
End Select
Next i
End Sub
rylo
Bookmarks