I've been tasked to correct someones code in VBA. I've never VBA programmed before so this is very basic.
Am I correct in assuming that after the first Then it checks if the next condition is true and thats where it executes the last line?
If data.Cells(i, 3 + 4).Value <> "" Then
If data.Cells(i, 2 + y).Value <> "" Then
tilqa = data.Cells(i, 2 + y)
End If
Option Explicitto the top of the VBA file, it will help get compilation errors, See Option Explicit Statement