lestoiles1
XLDnaute Occasionnel
Bonjour à tous,
Je ne sais pas qu-est-ce qui cloche avec le code vba copie coller pourtant j'ai fait record macro et ça bug au niveau de range("A8:A108")
Merci
Lestoiles1
Private Sub CommandButton1_Click()
Sheets("Resume").Select
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowFormattingCells:=True, AllowFormattingColumns:=True, _
AllowFormattingRows:=True, AllowSorting:=True, AllowFiltering:=True, _
AllowUsingPivotTables:=True
ActiveWindow.SmallScroll Down:=-18
Range("A8:A108").Select
Selection.Copy
Sheets("ALL2").Select
Range("A28037").Select
ActiveSheet.Paste
Sheets("Resume").Select
Range("R8:S108").Select
Range("S108").Activate
Application.CutCopyMode = False
Selection.Copy
Sheets("ALL2").Select
Range("B28037").Select
ActiveSheet.Paste
Range("D28037").Select
Application.CutCopyMode = False
Range("E28036").Select
Selection.Copy
Range("E28037").Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Range("D28037").Select
ActiveCell.FormulaR1C1 = "1/24/2022"
Range("F28036").Select
Selection.Copy
Range("F28037").Select
ActiveSheet.Paste
Range("D28037:F28037").Select
Application.CutCopyMode = False
Selection.Copy
End Sub
Je ne sais pas qu-est-ce qui cloche avec le code vba copie coller pourtant j'ai fait record macro et ça bug au niveau de range("A8:A108")
Merci
Lestoiles1
Private Sub CommandButton1_Click()
Sheets("Resume").Select
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowFormattingCells:=True, AllowFormattingColumns:=True, _
AllowFormattingRows:=True, AllowSorting:=True, AllowFiltering:=True, _
AllowUsingPivotTables:=True
ActiveWindow.SmallScroll Down:=-18
Range("A8:A108").Select
Selection.Copy
Sheets("ALL2").Select
Range("A28037").Select
ActiveSheet.Paste
Sheets("Resume").Select
Range("R8:S108").Select
Range("S108").Activate
Application.CutCopyMode = False
Selection.Copy
Sheets("ALL2").Select
Range("B28037").Select
ActiveSheet.Paste
Range("D28037").Select
Application.CutCopyMode = False
Range("E28036").Select
Selection.Copy
Range("E28037").Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Range("D28037").Select
ActiveCell.FormulaR1C1 = "1/24/2022"
Range("F28036").Select
Selection.Copy
Range("F28037").Select
ActiveSheet.Paste
Range("D28037:F28037").Select
Application.CutCopyMode = False
Selection.Copy
End Sub