Hopefully a simple answer here....
When double clicking on a worksheet cell the formula is copied down where the adjacent left cell is not empty, once it finds an empty cell it stops.
I have recorded this event in a macro:-
As you can see it has completed the range destination "F710" which was fine for this particular case.
What I need to find is the VBA dynamic equivilant of the "destination" cell so that when the macro is run it copies down until it gets to the first empty adjacent cell (the same action as the double click).
Any suggestions?
Happiness is...not getting what you want but wanting what you have already got
When double clicking on a worksheet cell the formula is copied down where the adjacent left cell is not empty, once it finds an empty cell it stops.
I have recorded this event in a macro:-
Code:
Range("F3").Select
Selection.AutoFill Destination:=Range("F3:F710")
As you can see it has completed the range destination "F710" which was fine for this particular case.
What I need to find is the VBA dynamic equivilant of the "destination" cell so that when the macro is run it copies down until it gets to the first empty adjacent cell (the same action as the double click).
Any suggestions?
Happiness is...not getting what you want but wanting what you have already got