Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Fill blanks down column with cell above

4 views
Skip to first unread message

KtP

unread,
Apr 13, 2008, 5:01:01 PM4/13/08
to
I have a column which is 40,000+ cells in length. Top cell has text then
numerous blanks (1-100) then another text cell followed by blanks, etc. etc.
All of the text cells are different and I want to fill the blanks with last
text cell above.
It is too much to manually go through and paste (double-click bottom right
corner), I'm wondering if there is an easier way?

Gary''s Student

unread,
Apr 13, 2008, 5:17:02 PM4/13/08
to
Here is a macro for column E, adjust it for your column of choice:

Sub copy_down()
Dim r As Range, rr As Range, n As Long
With ActiveSheet.UsedRange
n = .Rows.Count + .Row - 1
End With
Set r = Range(Cells(1, "E"), Cells(n, "E")).SpecialCells(xlCellTypeBlanks)
For Each rr In r
rr.FillDown
Next
End Sub

--
Gary''s Student - gsnu200779

KtP

unread,
Apr 13, 2008, 5:34:00 PM4/13/08
to
Wow, thank you! What a lifesaver
0 new messages