Excel Autofill macro for different data cells
Closed
Mike
-
18 Aug 2010 à 11:24
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 20 Aug 2010 à 08:17
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 20 Aug 2010 à 08:17
Related:
- Excel Autofill macro for different data cells
- How to copy data from one excel sheet to another - Guide
- Excel mod apk for pc - Download - Spreadsheets
- Autofill safari - Guide
- How to copy data to multiple worksheets in Excel - Guide
- Chrome clear autofill - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday 28 January 2010
Status
Contributor
Last seen
5 May 2022
766
20 Aug 2010 à 08:17
20 Aug 2010 à 08:17
Try this
Sub FillUp()
Dim lRow As Long
Dim sLastValue As String
lRow = 2
Do While Cells(lRow, 1) <> ""
If (Cells(lRow, 2) <> "") Then
sLastValue = Cells(lRow, 2)
Else
Cells(lRow, 2) = sLastValue
End If
lRow = lRow + 1
Loop
End Sub