Copy cell to one cell below

Bob1978

New Member
Joined
Jan 25, 2013
Messages
29
Hi,

I have been looking on line, but can't seem to come up with a solution for this.

I have a marco that will find the first cell with no data in, in column E, see my script.

Code:
Sub test_2()
'
' test_2 Macro
'
Cells(Cells(Rows.Count, "E").End(xlUp).Row + 1, "E").Select
End Sub

But I now need to copy the cell above it into this cell

e.g. if the first empty cell is E35 (35 it isn't always the last row), then I need to go up to E34 (the cell above) copy that cell and paste it in E35.

However, with my limited skills I haven't been able to do this.

If someone knows a way of doing this it would help me out a lot.

Thanks in advance

Bob
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Try

Code:
Sub test_2()
'
' test_2 Macro
'
With Cells(Cells(Rows.Count, "E").End(xlUp).Row + 1, "E")
    .Value = .Offset(-1).Value
End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,203,620
Messages
6,056,330
Members
444,861
Latest member
B4you_Andrea

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top