JoanaMartins
New Member
- Joined
- Jul 14, 2016
- Messages
- 29
Please, I so need your help!
The error appears when i do the set w thing!
I am kind of a beginner so can you kindly help me?
Thank you in advance!
The error appears when i do the set w thing!
I am kind of a beginner so can you kindly help me?
Code:
Sub Datas()
Dim w As Range
Dim t As Long
Dim i As Long
t = Sheets("Crono").Cells(Rows.Count, "A").End(xlUp).Row
For i = 8 To t
Set w = Sheets("Projetos NOVO").Range("C:C").Find(Sheets("Crono").Range("A" & i).Value).Row
If Sheets("Projetos NOVO").Range("D" & w).Find(Sheets("Crono").Range("C" & i).Value).Row Then
Sheets("Crono").Range("F" & i).Value = Sheets("Projetos NOVO").Range("R" & w).Value
Sheets("Crono").Range("G" & i).Value = Sheets("Projetos NOVO").Range("S" & w).Value
Else
End If
Next i
End Sub
Thank you in advance!