I have the following formula in column M2. I don't know in which row the formula should end, because it depends on how many product lines I import from another sheet, so I thought the range should be something like range("M:M").Formula =.
My question is, how can I write this in VBA?
=IF(OR(L2="update";L2="inactivate");VLOOKUP(A2;catalogue_open!A1:R1;13;FALS K);TODAY())
Thanks in advance.