See nexr revision.
If does not work please attach a new Excel sample with formulas
Option Explicit
Sub MyJob()
Dim InVal As String
Dim F
Dim LR As Integer
Dim WkRg As Range
InVal = Application.InputBox("Enter your choice", " Year selection", "2020-21", Type:=2)
Application.ScreenUpdating = False
ActiveSheet.AutoFilterMode = False
LR = Cells(Rows.Count, 3).End(3).Row
Set WkRg = Range("$A$3:$F" & LR)
If (InVal = "False") Then Exit Sub
WkRg.AutoFilter Field:=4, Criteria1:=InVal ' Filter on column D => 4
Set WkRg = WkRg.Offset(0, 2).SpecialCells(xlCellTypeVisible) ' Collect from column C => 2
ActiveSheet.AutoFilterMode = False
WkRg.Copy Destination:=Cells(LR + 1, 3) ' Paste in column C => 3
Cells(LR + 1, 3).Resize(1, 4).Delete Shift:=xlUp
Application.ScreenUpdating = False '
End Sub
Bookmarks