Hi guys.
I am trying to write a VBA code that would insert a formula in a cell if another cell meets a condition. E.g. If R3 = "Academic" Then M3 = "n/a". Otherwise, M3 assumes the following formula:Formula:
Please Login or Register to view this content.
Currently I managed to get this working with the following code:
So what happens is that cell, say, M10 is using the formula based on row 3 instead of updating the formula to the current row, which is 10 in this case.![]()
Please Login or Register to view this content.
What's the best way of doing it?
I appreciate any help.
Bookmarks