Niraj Baraili
Member
Sub check()
Dim j As Integer
a = Sheet2.Range("a2").CurrentRegion.Rows.Count
For j = 2 To a Step 1
If (Sheet4.Cells(4, 15) = Sheet3.Cells(j, 53)) = True Then
If (Sheet4.Cells(4, 16) = Sheet3.Cells(j, 52)) = True Then
Sheet3.Cells(j, 53) = Sheet4.Cells(4, 20)
Sheet3.Cells(j, 40) = Sheet4.Cells(4, 21)
End If
End If
Next j
While running this code, when line 1 and line 2 is true, line 4 and line 5 is executing. Could anyone help me on this ?
Dim j As Integer
a = Sheet2.Range("a2").CurrentRegion.Rows.Count
For j = 2 To a Step 1
If (Sheet4.Cells(4, 15) = Sheet3.Cells(j, 53)) = True Then
If (Sheet4.Cells(4, 16) = Sheet3.Cells(j, 52)) = True Then
Sheet3.Cells(j, 53) = Sheet4.Cells(4, 20)
Sheet3.Cells(j, 40) = Sheet4.Cells(4, 21)
End If
End If
Next j
While running this code, when line 1 and line 2 is true, line 4 and line 5 is executing. Could anyone help me on this ?