Hi folks, the following is a formula I am entering into a cell using VBA, and is the resulting formula that is in the target cell after the code runs, not the code itself. I am getting a #NAME? error, and it apparently doesn't like the Cells portion of the formula. Can someone tell me why I can't use Cells(x,y) in this case? I need to keep this formula variable, in case the number of data columns changes in the worksheet.
=IF(AND(Cells(3,14)>0,Cells(3,15)<>""),"X","")
=IF(AND(Cells(3,14)>0,Cells(3,15)<>""),"X","")