Thread
:
Copy Up until Non-Blank Cell encountered
View Single Post
#
2
Posted to microsoft.public.excel.misc
Don Guillett
external usenet poster
Posts: 10,124
Copy Up until Non-Blank Cell encountered
Sub fillinblanks()
mycol = "L"
For i = Cells(Rows.Count, mycol).End(xlUp).Row To 2 Step -1
If Cells(i - 1, mycol) = "" Then
Cells(i - 1, mycol).Value = Cells(i, mycol)
End If
Next i
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"Jim May" wrote in message
...
I need a procedure that will start with say cell L300 (which has a text
value) and
Copy it into cells L299-L250 that are blank; L249 has a different Cell
value
and I need to copy it into cells L248-L150 that are blank, etc until Row
2.
How would I do that? Do while.. Loop but I can't solve...
Any help appreciated
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett