Please see attached samlpe file.
I need to "extract" the numbers in range a1:a5, in a way that if a1=2, then vba write in column c, the value 2 twice, and if a2=4, then vba write in column c the value 4, four times etc.
Thanks
Please see attached samlpe file.
I need to "extract" the numbers in range a1:a5, in a way that if a1=2, then vba write in column c, the value 2 twice, and if a2=4, then vba write in column c the value 4, four times etc.
Thanks
Please * if you like the answer
![]()
Sub Maybe() Dim i As Long For i = 1 To Cells(Rows.Count, 1).End(xlUp).Row Cells(Rows.Count, 3).End(xlUp).Offset(1).Resize(Cells(i, 1)).Value = Cells(i, 1).Value Next i Cells(1, 3).Delete Shift:=xlUp End Sub
Thank you very much! :-)
Thanks for letting us know and Good Luck
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks