I need cell I7 to equal the last cell in column I within a macro. I tried to do "=CTRL+END" & got this:
TestI7 Macro
Range("I7").Select
ActiveCell.FormulaR1C1 = "=R[18]C"
Range("I8").Select
End Sub
However, this is giving me the last cell that was in the spreadsheet it was created in, I8. This spreadsheet is very long & the last cell can range from I2000 to I4999. How can I tell the macro I want cell I7 to equal the very last cell no matter what it is each time?
TestI7 Macro
Range("I7").Select
ActiveCell.FormulaR1C1 = "=R[18]C"
Range("I8").Select
End Sub
However, this is giving me the last cell that was in the spreadsheet it was created in, I8. This spreadsheet is very long & the last cell can range from I2000 to I4999. How can I tell the macro I want cell I7 to equal the very last cell no matter what it is each time?