1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| Sub Congés()
Dim Derligne As Long
Dim f As Worksheet
Set f = ThisWorkbook.Sheets("CM")
Sheets("CALENDRIER 2020").Select
Range("L2").Select
Selection.Copy
Sheets("CM").Select
Derligne = f.Range("A" & Rows.Count).End(xlUp).Row + 1
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("CALENDRIER 2020").Select
Range("BA1").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("CM").Select
Derligne = f.Range("C" & Rows.Count).End(xlUp).Row + 1
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("CALENDRIER 2020").Select
Range("BA2").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("CM").Select
Derligne = f.Range("D" & Rows.Count).End(xlUp).Row + 1
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Set f = Nothing
End Sub |