With wsDestination
'
.Range("A2").Resize(UBound(OutputArray, 1), UBound(OutputArray, 2)) = OutputArray ' Display results to DestinationSheet
DestinationLastRow = .Range("A" & .Rows.Count).End(xlUp).Row ' Get last row used in column A of the destination sheeet
'
' .Range("B2:M" & DestinationLastRow).Interior.Color = RGB(146, 208, 80) ' Highlight the range green
' .Range("B2:M" & DestinationLastRow).Font.Bold = True ' Make the range Bold
.Range("B2").Resize(DestinationLastRow, UBound(HeaderTitlesToPaste)).Interior.Color = RGB(146, 208, 80) ' Highlight the range green
.Range("B2").Resize(DestinationLastRow, UBound(HeaderTitlesToPaste)).Font.Bold = True ' Make the range Bold
' --------------------- Lots of code between the above and the 2 sections below ---------------------------
'
With wsMatched
.Range("A2").Resize(UBound(MatchedArray, 1), UBound(MatchedArray, 2)) = MatchedArray ' Display results to Matched sheet
'
For Each cel In .Range("B2:B" & .Range("B" & Rows.Count).End(xlUp).Row) ' Loop through all cells in column B on the Matched sheet
If cel.Value = "2A" Then ' If Cell value is 'PORTAL' then ...
' cel.EntireRow.Interior.Color = RGB(146, 208, 80) ' Color the row
' cel.EntireRow.Font.Bold = True ' Bold the row
cel.Resize(1, UBound(HeaderTitlesToPaste)).Interior.Color = RGB(146, 208, 80) ' Color the row
cel.Resize(1, UBound(HeaderTitlesToPaste)).Font.Bold = True ' Bold the row
End If
Next ' Loop back
End With
'
With wsMismatches
.Range("A2").Resize(UBound(MismatchesArray, 1), UBound(MismatchesArray, 2)) = MismatchesArray ' Display results to Mismatches sheet
'
For Each cel In .Range("B2:B" & .Range("B" & Rows.Count).End(xlUp).Row) ' Loop through all cells in column B on the Mismatches sheet
If cel.Value = "2A" Then ' If Cell value is 'PORTAL' then ...
' cel.EntireRow.Interior.Color = RGB(146, 208, 80) ' Color the row
' cel.EntireRow.Font.Bold = True ' Bold the row
cel.Resize(1, UBound(HeaderTitlesToPaste)).Interior.Color = RGB(146, 208, 80) ' Color the row
cel.Resize(1, UBound(HeaderTitlesToPaste)).Font.Bold = True ' Bold the row
End If
Next ' Loop back
End With