This macro assumes that the Consolidated_RC sheet has headers in row 1 and the data starts at row 2.
Sub copyRange()
Application.ScreenUpdating = False
Dim LastRow As Long
LastRow = Sheets("Consolidated_RC").Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
Dim foundVal As Range
Set foundVal = Sheets("Consolidated_RC").Range("C:C").Find(Sheets("Data").Range("B4").Value, LookIn:=xlValues, lookat:=xlWhole)
If Not foundVal Is Nothing Then
Sheets("Consolidated_RC").Range("C1:C" & LastRow).AutoFilter Field:=1, Criteria1:=foundVal
Sheets("Consolidated_RC").Range("B2:K" & LastRow).SpecialCells(xlCellTypeVisible).copy Sheets("Data").Range("B9")
End If
If Sheets("Consolidated_RC").AutoFilterMode = True Then Sheets("Consolidated_RC").AutoFilterMode = False
Application.ScreenUpdating = True
End Sub
Bookmarks