evil_moses
New Member
- Joined
- Oct 27, 2008
- Messages
- 39
Afternoon all,
Within my macro I have looped downwards to find the next empty cell. I then need to go back to this cell location (i.e. B6) later in the macro and many times. How can I go back to this cell location without performing the loop again? (which will make the code long and make the macro completion time much much longer)
The simple code below doesn't seem to do the trick - I'm sure I'm just missing something easy!!
Dim CellLocation As Range
Do Until ActiveCell = ""
ActiveCell.Offset(1, 0).Select
Loop
CellLocation = ActiveCell
Thanks for your help
Marcus
Within my macro I have looped downwards to find the next empty cell. I then need to go back to this cell location (i.e. B6) later in the macro and many times. How can I go back to this cell location without performing the loop again? (which will make the code long and make the macro completion time much much longer)
The simple code below doesn't seem to do the trick - I'm sure I'm just missing something easy!!
Dim CellLocation As Range
Do Until ActiveCell = ""
ActiveCell.Offset(1, 0).Select
Loop
CellLocation = ActiveCell
Thanks for your help
Marcus