Sub a()
Dim dl&, f As Worksheet: Set f = Sheets("Saisies")
f.Range(f.Cells(3, 2), f.Cells(3, 3)(8)).Copy
With Sheets("Archivage")
.Cells(Rows.Count, 3).End(3)(2).PasteSpecial xlValues, xlNone, False, True
dl = .Cells(Rows.Count, 3).End(3)(-0).Row
.Cells(dl, 1) = Date: .Cells(dl, 2) = "Course " & f.[E2].Text
End With
End Sub
Il surprenant qu'inscrit sur le forum depuis avril 2005, (soit deux mois avant moi), tu ne saches pas comment utiliser une macro...Pour Staple1600 merci pour ta proposition ,je ne suis pas doué en macros..
le bouton de la macros je le met dans quelle feuille..???
Merci
Guido
Sub Bouton1_Cliquer()
Dim dl&, f As Worksheet: Set f = Sheets("Saisies")
Application.ScreenUpdating = False
f.Range(f.Cells(3, 2), f.Cells(3, 3)(8)).Copy
With Sheets("Archivage")
.Cells(Rows.Count, 3).End(3)(2).PasteSpecial xlValues, xlNone, False, True
dl = .Cells(Rows.Count, 3).End(3)(-0).Row
.Cells(dl, 1) = Date: .Cells(dl, 2) = "Course " & f.[E2].Text
End With
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub
Private Sub CommandButton1_Click()
Dim dl&, f As Worksheet: Set f = Sheets("Saisies")
Application.ScreenUpdating = False
f.Range(f.Cells(3, 2), f.Cells(3, 3)(8)).Copy
With Sheets("Archivage")
.Cells(Rows.Count, 3).End(3)(2).PasteSpecial xlValues, xlNone, False, True
dl = .Cells(Rows.Count, 3).End(3)(-0).Row
.Cells(dl, 1) = Date: .Cells(dl, 2) = "Course " & f.[E2].Text
End With
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub