I wrote some VBA code that checks for a couple different variables and if the code passes then a formula is pasted into a specific location into my spreadsheet.
The formula is as follows:
=10^($AN19*LOG10($K19)+$AO19-$AP19*0.6745)
What's happening is that the formula is being pasted in my cell exactly as written above (row and column reference as-is). What I really want is for the column references to be locked (as noted) but the row reference to change based on the row where my formula ends up. It could be anywhere from row 1 to row 1000. How do I change the formula to allow the row reference to change based on the row where my formula is inserted into my spreadsheet?
Thanks,
Gabe
The formula is as follows:
=10^($AN19*LOG10($K19)+$AO19-$AP19*0.6745)
What's happening is that the formula is being pasted in my cell exactly as written above (row and column reference as-is). What I really want is for the column references to be locked (as noted) but the row reference to change based on the row where my formula ends up. It could be anywhere from row 1 to row 1000. How do I change the formula to allow the row reference to change based on the row where my formula is inserted into my spreadsheet?
Thanks,
Gabe