C
Culichi
Hello--
In Excel, you can fill down by double-clicking on the little black
square in the lower-right corner of a cell. If it's adjacent to a column
of data, it will automatically fill down to the last full cell in the
adjacent column.
I'd like to tell VBA to do this. I recorded it with the macro recorder,
but this assigns only the specific range that actually exists in a given
spreadsheet/column of data. I'd like to be able to use this in a macro
for many spreadsheets of varying sizes. Can anyone tell me how to code
whatever is happening in Excel when it does that "adjacent-fill down"
maneuver? That is, how do you assign a flexible endpoint to a range,
based on adjacent cells being full or not?
Many thanks,
Kelley
In Excel, you can fill down by double-clicking on the little black
square in the lower-right corner of a cell. If it's adjacent to a column
of data, it will automatically fill down to the last full cell in the
adjacent column.
I'd like to tell VBA to do this. I recorded it with the macro recorder,
but this assigns only the specific range that actually exists in a given
spreadsheet/column of data. I'd like to be able to use this in a macro
for many spreadsheets of varying sizes. Can anyone tell me how to code
whatever is happening in Excel when it does that "adjacent-fill down"
maneuver? That is, how do you assign a flexible endpoint to a range,
based on adjacent cells being full or not?
Many thanks,
Kelley