Hi,
I am trying to pass the column value of cells with values not equal to zero to variables F1, F2, F3 , F4, F5 & F6. The code is as under;
Code
Dim i, F1, F2, F3, F4, F5, F6 As Integer
Set TsRng = Range("E3:J3")
i = 1
For Each Ts In TsRng
If Ts.Value <> 0 Then
"F" & i = Ts.Column
i = i + 1
End If
Next
I get a compile error message for the line "F" & i = Ts.column. Not sure what I am doing wrong here. Please help.
Thanks in advance.