Dim i As Long, j As Long
Dim DerLig_f1 As Long, DerLig_f2 As Long
Sub Ventilation()
Application.ScreenUpdating = False
Set f1 = Sheets("idconel")
DerLig_f1 = f1.Range("C" & Rows.Count).End(xlUp).Row
For j = 1 To 8
If Sheets(j).Name = "6A" Or Sheets(j).Name = "5B" Or Sheets(j).Name = "3A" Or Sheets(j).Name = "3B" Then
Set f2 = Sheets(Sheets(j).Name)
DerLig_f2 = f2.Range("C" & Rows.Count).End(xlUp).Row
f2.Range("C5:R" & DerLig_f2).Clear
DerLig_f2 = 5
For i = DerLig_f1 To 5 Step -1
If f1.Cells(i, "R").Value = Sheets(j).Name Then
f1.Range(Cells(i, "C"), Cells(i, "R")).Copy f2.Range("C" & DerLig_f2)
DerLig_f2 = DerLig_f2 + 1
End If
Next i
End If
Next j
f1.Select
End Sub