Auto Populate cells from bottom to top vba
Closed
lin
-
19 Aug 2010 à 05:38
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 20 Aug 2010 à 08:47
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 20 Aug 2010 à 08:47
Related:
- Auto Populate cells from bottom to top vba
- Vba find - Guide
- Android auto apk - Download - Other
- Nvidia auto detect - Guide
- What is auto download mms - Guide
- How to stop twitter from auto translating - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday 28 January 2010
Status
Contributor
Last seen
5 May 2022
766
20 Aug 2010 à 08:47
20 Aug 2010 à 08:47
Try this
Sub FillUp()
Dim lRow As Long
Dim sLastValue As String
lRow = Cells(Rows.Count, "A").End(xlUp).Row
Do While True
If (Cells(lRow, 1) <> "") Then
sLastValue = Cells(lRow, 1)
Else
Cells(lRow, 1) = sLastValue
End If
lRow = lRow - 1
If (lRow = 0) Then Exit Do
Loop
End Sub