Originally Posted by
Aussiebear
What does j represent?
I am trying to update the date in the current file row i with date from another file row j.
Dim r As Range
Dim i, j As Integer
i = 15
j = 7
Set r = wb.Sheets("List of Products").Range("B7:B100")
For Each cell In r
If Not IsEmpty(cell) Then
' I update the current document with data from wb document
.Cells(i, "E").Formula = wb.Worksheets("List of Products").Range("B7").Value
.Cells(i, "P").Formula = wb.Worksheets("List of Products").Range("I7").Value ' here I need (j, "I")
i = i + 1
j = j + 1
Cancel = True
End If