copy one cell date to another cell of sheet

riz4u

New Member
Joined
Sep 6, 2014
Messages
4
dear all i want to copy on cell data into downward blank cell,if non blan cell came,it come its date and paste to all blanks cell and soo on


i have data(pillow) in column D,i want it paste in blank cell,then slect other non-blank cell and paste data to downword blank cell,and soooo on
D E
[TABLE="width: 20"]
<tbody>[TR]
[TD]pillow
[/TD]
[TD]cutt
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]stitch
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]pack
[/TD]
[/TR]
[TR]
[TD]quilt cover
[/TD]
[TD]cutt
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]stitc
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]pack
[/TD]
[/TR]
[TR]
[TD]curtain
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Id this what you're after
Code:
Sub MM1()
Dim lr As Long, r As Long
lr = Cells(Rows.Count, "E").End(xlUp).Row
For r = 1 To lr
    If Range("D" & r + 1).Value = "" Then
        Range("D" & r + 1).Value = Range("D" & r).Value
    End If
Next r
End Sub
 
Upvote 0

Forum statistics

Threads
1,225,072
Messages
6,182,699
Members
453,132
Latest member
nsnodgrass73

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