I am new to using the FormulaR1C1 style of syntax, and am running into some (hopefully simple) problems. I am using variables, but when I input them into the formula, I believe it is searching relative cells rather than the column assigned to the variable.
The function I am trying to produce in every active row for column "iVariable1" is as follows:
With Range(Cells(2, iVariable1), Cells(LR, iVariable1))
IF(AND(Cells(2, iVariable5) <>"", Cells(2, iVariable5) > Cells(2, iVariable6)), "TRUE", "FALSE")
End With
Here is the coding I have:
*Note: Each of the iVariable's represents a column.
Is there a way to have the formula grab the column I am looking for, rather than it finding an irrelevant column?
Bookmarks