General discussion
-
Topic
-
How can I Create a Macro with Absolute A
LockedHere’s what I’m trying to do. I have created a macro that will calculate depreciation for a piece of equipment over a 60-month period. The macro auto-fills 60 cells (in a column -ie: F8:F67) with each months depreciation amount (and remaining residual value in the adjacent column) based on the value, in this case, entered in cell G7. The macro will Always be run in the cell located 1 down diagonally to the left of the cell that the equipment value is entered in. This works fine, unless I run the macro from a different cell, say I14:I73, which should then calculate based on the value in cell J13. It will return an error because the macro has an absolute reference to the cell range F8: F67. How can I tell the macro to just auto fill 60 cells starting from the ACTIVE cell?
Thanks in advance!