carlosjcabral
New Member
- Joined
- Dec 30, 2005
- Messages
- 28
New at this, not sure what I did wrong. All I want it to do is look at the cell and if it is blank then paste the value in the cell above it. Then reapeat this until the end of the page.
dim rz As Long, z As Long
rz = Cells(Rows.Count, 4).End(xlUp).Row
For z = rz To 1 Step -1
If Cells(z, 2).Value = "" Then Value = Cells(z - 1, 2).Value
Next z
dim rz As Long, z As Long
rz = Cells(Rows.Count, 4).End(xlUp).Row
For z = rz To 1 Step -1
If Cells(z, 2).Value = "" Then Value = Cells(z - 1, 2).Value
Next z