sashazaliz
New Member
- Joined
- Nov 9, 2009
- Messages
- 46
I'm working with the below macro which works on the first column by filling down the values from the row above in order to create a flat file format. My issue is I need the macro to perform this function on the first 3 columns. Is there a tweak to the code somebody could reccommend for me? thanks!
Code:
Sub InsertManufNames()
'the purpose of this macro is the insert the mfr names where they come in blank
ActiveCell.SpecialCells(xlLastCell).Select
Selection.End(xlToLeft).Select
Selection.End(xlUp).Select
LastRow = ActiveCell.Row + 1
For I = 1 To LastRow
If Cells(I, 1) <> "" Then
If Cells(I + 1, 1) = "" Then
Cells(I + 1, 1) = Cells(I, 1)
End If
End If
Next I
End Sub