Cathy,
Programmatically you can obtain the last active cell in a column with the
VBA command
sheet1.UsedRange.Columns(1).cells.count
Replace sheet1 with the sheet object you are referencing and the number 1
embedded in parentheses with the column number you are referencing. This
will give you the total number of used rows in that column.
http://HelpExcel.com
"Cathy U" wrote:
I am creating a Macro which sorts and adds a formula to the right of a
column. I want to be able to fill down the data, without creating a range
because the number of rows can change. I want the formula to fill down to
the last active cell in the column on the left of the formula. Is there a
shortcut key I can use when recording the macro?
Thanks.
Cathy U