Sub TranfertJanvier()
'-- Copie Données suivant Date Feuil Col C dans Feuil2
Dim Cell As Range, DerLi As Long
Sheets("Echeancier").Activate
For Each Cell In Range("B2:B" & Range("B65536").End(xlUp).Row)
If Cell <= Date And Cell.Offset(, 5) = "" Then
Cell.Offset(, 5) = "X"
'Cell.Offset(, -2) = "P"
With Sheets("Janvier")
On Error Resume Next
DerLi = .Range("A65536").End(xlUp).Row + 1
Range("A" & Cell.Row & ":" & "F" & Cell.Row).Copy .Range("A" & DerLi & ":F" & DerLi)
End With
End If
Next
End Sub
Sub TranfertFevrier()
'-- Copie Données suivant Date Feuil Col C dans Feuil2
Dim Cell As Range, DerLi As Long
Sheets("Echeancier").Activate
For Each Cell In Range("B2:B" & Range("B65536").End(xlUp).Row)
If Cell <= Date And Cell.Offset(, 5) = "" Then
Cell.Offset(, 5) = "X"
'Cell.Offset(, -2) = "P"
With Sheets("Fevrier")
On Error Resume Next
DerLi = .Range("A65536").End(xlUp).Row + 1
Range("A" & Cell.Row & ":" & "F" & Cell.Row).Copy .Range("A" & DerLi & ":F" & DerLi)
End With
End If
Next
End Sub
Sub TranfertMars()
'-- Copie Données suivant Date Feuil Col C dans Feuil2
Dim Cell As Range, DerLi As Long
Sheets("Echeancier").Activate
For Each Cell In Range("B2:B" & Range("B65536").End(xlUp).Row)
If Cell <= Date And Cell.Offset(, 5) = "" Then
Cell.Offset(, 5) = "X"
'Cell.Offset(, -2) = "P"
With Sheets("Mars")
On Error Resume Next
DerLi = .Range("A65536").End(xlUp).Row + 1
Range("A" & Cell.Row & ":" & "F" & Cell.Row).Copy .Range("A" & DerLi & ":F" & DerLi)
End With
End If
Next
End Sub
Sub TranfertAvril()
'-- Copie Données suivant Date Feuil Col C dans Feuil2
Dim Cell As Range, DerLi As Long
Sheets("Echeancier").Activate
'
For Each Cell In Range("B2:B" & Range("B65536").End(xlUp).Row)
If Cell <= Date And Cell.Offset(, 5) = "" Then
Cell.Offset(, 5) = "X"
'Cell.Offset(, -2) = "P"
With Sheets("Avril")
On Error Resume Next
DerLi = .Range("A65536").End(xlUp).Row + 1
Range("A" & Cell.Row & ":" & "F" & Cell.Row).Copy .Range("A" & DerLi & ":F" & DerLi)
End With
End If
Next
End Sub
Sub TranfertMai()
'-- Copie Données suivant Date Feuil Col C dans Feuil2
Dim Cell As Range, DerLi As Long
Sheets("Echeancier").Activate
For Each Cell In Range("B2:B" & Range("B65536").End(xlUp).Row)
If Cell <= Date And Cell.Offset(, 5) = "" Then
Cell.Offset(, 5) = "X"
'Cell.Offset(, -2) = "P"
With Sheets("Mai")
On Error Resume Next
DerLi = .Range("A65536").End(xlUp).Row + 1
Range("A" & Cell.Row & ":" & "F" & Cell.Row).Copy .Range("A" & DerLi & ":F" & DerLi)
End With
End If
Next
End Sub
Sub TranfertJuin()
'-- Copie Données suivant Date Feuil Col C dans Feuil2
Dim Cell As Range, DerLi As Long
Sheets("Echeancier").Activate
For Each Cell In Range("B2:B" & Range("B65536").End(xlUp).Row)
If Cell <= Date And Cell.Offset(, 5) = "" Then
Cell.Offset(, 5) = "X"
'Cell.Offset(, -2) = "P"
With Sheets("Juin")
On Error Resume Next
DerLi = .Range("A65536").End(xlUp).Row + 1
Range("A" & Cell.Row & ":" & "F" & Cell.Row).Copy .Range("A" & DerLi & ":F" & DerLi)
End With
End If
Next
End Sub