Welcome
How do I copy the value of a d2 cell cellin column b ; F2 cellin column D It is repeated over the number of rows copied
How do I copy the value of a d2 cell cellin column b ; F2 cellin column D It is repeated over the number of rows copied
VBA Code:
Sub Bouton1_Cliquer()
Dim LastRow As Integer
Dim NextRow As Integer
Dim RowCount As Integer
Feuil1.Activate
NextRow = Feuil2.Cells(Rows.Count, 6).End(xlUp).Row + 1
LastRow = Cells(Rows.Count, 2).End(xlUp).Row
RowCount = LastRow - 8
Feuil2.Cells(NextRow, 5).Resize(RowCount, 7).Value = Cells(9, 1).Resize(RowCount, 7).Value
End Sub