I have a column(x) and trying to do a If and like in another column(d). Getting a range error on the selection autofill part.
Dim src As Range
Set src = Worksheets("File").Range("2:17783")
If (Range("x2").Value Like "*ProductType:'FXD';*") Then
Range("D2").Value = "FXD"
ElseIf (Range("x2").Value Like "*;ProductSubType:'SWLEG'*") Then
Range("D2").Value = "XSW"
End If
Selection.AutoFill Destination:=src.Columns("D")