Macros-autofill down to one row above next data field

G

Guest

I tried using the relative reference to automatically (shift-end-down arrow
then up arrow one row) to autofill. The number of rows will vary each time.
The macro doesn't record properly.

What is the best way to handle this?

Thank you.
 
G

Gord Dibben

Sub Selectdown()
Range(ActiveCell, ActiveCell.End(xlDown).Offset(-1, 0)).FillDown
End Sub


Gord Dibben MS Excel MVP
 
G

Guest

That does it. Thank you.
Terry

Gord Dibben said:
Sub Selectdown()
Range(ActiveCell, ActiveCell.End(xlDown).Offset(-1, 0)).FillDown
End Sub


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top