-1
I am trying to perform this code but excel returns 1004 execution error on line 4 (marked **) could provide me some help on why this happens?
Dim i As Integer
For i = 0 To 367
Sheets("Plan").Select
If Cells(i, 1).Value = Date Then **
Sheets("Dólar").Range("B2").Copy
Sheets("Plan1").Cells(i, 2).PasteSpecial xlPasteValues
End If
Next i
End Sub