- Katılım
- 7 Temmuz 2007
- Mesajlar
- 111
- Excel Vers. ve Dili
- Office 2003 Tr
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub Nöbet_Dağıt()
Dim Sayfa As Variant, i As Long, j As Long, S1 As Worksheet
Set S1 = Sheets("Liste")
For i = 1 To Worksheets.Count
If Sheets(i).Name <> "Liste" And Sheets(i).Name <> "Genel Durum" And _
Sheets(i).Name <> "Döner" And Sheets(i).Name <> "Personel" Then
Sheets(i).Range("C9:G65536").ClearContents
Sheets(i).Range("C9:G65536").Interior.Pattern = xlSolid
End If
Next i
For i = 3 To S1.[H65536].End(3).Row
Sayfa = S1.Cells(i, "H")
If Sheets(Sayfa).[C9] = "" Then
j = 9
Else
j = Sheets(Sayfa).[C65536].End(3).Row + 1
End If
If S1.Cells(i, "B") <> "Pasif" Then
Sheets(Sayfa).Cells(j, "C") = S1.Cells(i, "C")
Sheets(Sayfa).Cells(j, "D") = S1.Cells(i, "D")
Sheets(Sayfa).Cells(j, "G") = S1.Cells(i, "G")
End If
If S1.Cells(i, "G") <> "" And S1.Cells(i, "B") <> "Pasif" Then
Sheets(Sayfa).Cells(j, "E").Interior.Pattern = xlGray25
Sheets(Sayfa).Cells(j, "F").Interior.Pattern = xlGray25
End If
Next
MsgBox "Akatarım tamalandı.", vbOKOnly + vbInformation, "[URL="http://www.excel.web.tr"]www.excel.web.tr[/URL]"
End Sub