Hi, I have this formula, but i would like to just have in "K" the sum of offset(0,3)+offset(0,4) is it possible on VBA or should i add up that on the sheet and just copy it?
Rw = 11
With Sheets("Draft")
For Each Cl In .Range("K7", .Range("K" & Rows.Count).End(xlUp))
If Cl.Value = "YES" Then
Sheets("U-Detail").Range("K" & Rw).Value = Cl.Offset(0, 3)
Rw = Rw + 1
End If
Next Cl
End With
' Tax
Rw = 11
With Sheets("Draft")
For Each Cl In .Range("K7", .Range("K" & Rows.Count).End(xlUp))
If Cl.Value = "YES" Then
Sheets("U-Detail").Range("L" & Rw).Value = Cl.Offset(0, 4)
Rw = Rw + 1
End If
Next Cl
End With
Rw = 11
With Sheets("Draft")
For Each Cl In .Range("K7", .Range("K" & Rows.Count).End(xlUp))
If Cl.Value = "YES" Then
Sheets("U-Detail").Range("K" & Rw).Value = Cl.Offset(0, 3)
Rw = Rw + 1
End If
Next Cl
End With
' Tax
Rw = 11
With Sheets("Draft")
For Each Cl In .Range("K7", .Range("K" & Rows.Count).End(xlUp))
If Cl.Value = "YES" Then
Sheets("U-Detail").Range("L" & Rw).Value = Cl.Offset(0, 4)
Rw = Rw + 1
End If
Next Cl
End With