Copy paste to another workbook with an if statement
<p>I want to copy certain values from another sheet from another workbook in vba excel but im gettin err 1004. this is my code</p>

<pre><code>Sub copiar()
    Dim rng As Range
    Dim cell As Range
    Dim rng2 As Range
    Dim cell2 As Range


    Set rng2 = Range("A2:A5")
    Set rng = Workbooks("perfumes.xlsx").Sheets("hoja").Range("A4:A10")


    For Each cell In rng2
        For Each cell2 In rng
            If cell2 = cell Then Workbooks("perfumes.xlsx").Worksheets("Hoja 1").Range("K" &amp; cell2.Row).Copy Range("H" &amp; cell.Row)
        Next cell2
    Next cell

End Sub
</code></pre>

<p>Cant realise where the error occur
Im quite new to macros, migth need help, thanks</p>