Citation :
Sub Macro3()
With ActiveSheet
.Protect vbNullString, , , , True
.Range("A1" ).Copy .Range("A1" )
.Unprotect vbNullString
End With
Dim R As Integer
R = ActiveCell.Row
Rows(R).Select
Selection.Insert Shift:=xlDown
Range("C" & R + 1).Select
Selection.Copy
Range("C" & R).Select
ActiveSheet.Paste
Application.CutCopyMode = False
Range("A" & R + 1).Select
Selection.Copy
Range("A" & R).Select
ActiveSheet.Paste
Application.CutCopyMode = False
Range("B" & R + 1).Select
Selection.Copy
Range("B" & R).Select
ActiveSheet.Paste
Application.CutCopyMode = False
Range("A" & R).Select
With Sheets("Feuil1" )
.EnableAutoFilter = True
.Protect Contents:=True, UserInterfaceOnly:=True
End With
With ActiveSheet
.Protect vbNullString, , , , True
.Range("A1" ).Copy .Range("A1" )
.Protect vbNullString
End With
End Sub
|