DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub HSB2()
'CreateObject("WScript.Shell").Popup _
'"Lütfen bekleyin Makina Planlama işlemi yapılıyor", 4, "Uyarı"
SON = Sheets("Plan").Range("A65536").End(xlUp).Row
For Say = 2 To SON
Cells(1, "AS").Value = Say
Call HESAPLA2
'------I SÜTUNU----------
If Cells(Say, "I").Value = "" Then
Cells(Say, "S").Value = ""
Range("I" & Say & ":T" & Say).Interior.ColorIndex = xlNone
GoTo ATLA
End If
'--A---------------------I
If Cells(Say, "I").Value = "A" Or Cells(Say, "I").Value = "a" Then
If Cells(1, "AM").Value = 0 Then
Cells(Say, "S").Value = CDate(Date) + 0.625
Range("I" & Say & ":t" & Say).Interior.ColorIndex = 4
Else
Cells(Say, "S").Value = Cells(1, "AM").Value
Range("I" & Say & ":t" & Say).Interior.ColorIndex = 4
End If
End If
'--B---------------------I
If Cells(Say, "I").Value = "B" Or Cells(Say, "I").Value = "b" Then
If Cells(1, "AO").Value = 0 Then
Cells(Say, "S").Value = CDate(Date) + 0.625
Range("I" & Say & ":t" & Say).Interior.ColorIndex = 6
Else
Cells(Say, "S").Value = Cells(1, "AO").Value
Range("I" & Say & ":t" & Say).Interior.ColorIndex = 6
End If
End If
'--C---------------------I
If Cells(Say, "I").Value = "C" Or Cells(Say, "I").Value = "c" Then
If Cells(1, "AQ").Value = 0 Then
Cells(Say, "S").Value = CDate(Date) + 0.625
Range("I" & Say & ":t" & Say).Interior.ColorIndex = 7
Else
Cells(Say, "S").Value = Cells(1, "AQ").Value
Range("I" & Say & ":t" & Say).Interior.ColorIndex = 7
End If
End If
'--D---------------------I
If Cells(Say, "I").Value = "D" Or Cells(Say, "I").Value = "d" Then
If Cells(1, "AU").Value = 0 Then
Cells(Say, "S").Value = CDate(Date) + 0.625
Range("I" & Say & ":t" & Say).Interior.ColorIndex = 8
Else
Cells(Say, "S").Value = Cells(1, "AU").Value
Range("I" & Say & ":t" & Say).Interior.ColorIndex = 8
End If
End If
ATLA:
'------V SÜTUNU----------
If Cells(Say, "V").Value = "" Then
Cells(Say, "AF").Value = ""
Range("V" & Say & ":AG" & Say).Interior.ColorIndex = xlNone
GoTo ATLA1
End If
'--A---------------------V
If Cells(Say, "V").Value = "A" Or Cells(Say, "V").Value = "a" Then
If Cells(1, "AM").Value = 0 Then
Cells(Say, "AF").Value = CDate(Date) + 0.625
Range("V" & Say & ":AG" & Say).Interior.ColorIndex = 4
Else
Cells(Say, "AF").Value = Cells(1, "AM").Value
Range("V" & Say & ":AG" & Say).Interior.ColorIndex = 4
End If
End If
'--B---------------------V
If Cells(Say, "V").Value = "B" Or Cells(Say, "V").Value = "b" Then
If Cells(1, "AO").Value = 0 Then
Cells(Say, "AF").Value = CDate(Date) + 0.625
Range("V" & Say & ":AG" & Say).Interior.ColorIndex = 6
Else
Cells(Say, "AF").Value = Cells(1, "AO").Value
Range("V" & Say & ":AG" & Say).Interior.ColorIndex = 6
End If
End If
'--C---------------------V
If Cells(Say, "V").Value = "C" Or Cells(Say, "V").Value = "c" Then
If Cells(1, "AQ").Value = 0 Then
Cells(Say, "AF").Value = CDate(Date) + 0.625
Range("V" & Say & ":AG" & Say).Interior.ColorIndex = 7
Else
Cells(Say, "AF").Value = Cells(1, "AQ").Value
Range("V" & Say & ":AG" & Say).Interior.ColorIndex = 7
End If
End If
'--D---------------------V
If Cells(Say, "V").Value = "D" Or Cells(Say, "V").Value = "d" Then
If Cells(1, "AU").Value = 0 Then
Cells(Say, "AF").Value = CDate(Date) + 0.625
Range("V" & Say & ":AG" & Say).Interior.ColorIndex = 8
Else
Cells(Say, "AF").Value = Cells(1, "AU").Value
Range("V" & Say & ":AG" & Say).Interior.ColorIndex = 8
End If
End If
ATLA1:
Next
End Sub
Sub HSB2()
son = Sheets("Plan").Range("A65536").End(xlUp).Row
Range("s2:t" & son).ClearContents
Range("af2:ag" & son).ClearContents
For Say = 2 To son
Cells(1, "AS").Value = Say
Call HESAPLA2
'------I SÜTUNU----------
If Cells(Say, "I").Value = "" Then
Cells(Say, "S").Value = ""
Range("I" & Say & ":T" & Say).Interior.ColorIndex = xlNone
GoTo ATLA
End If
'--A---------------------I
If Cells(Say, "I").Value = "A" Or Cells(Say, "I").Value = "a" Then
If Cells(1, "AM").Value < 100 Then
Cells(Say, "S").Value = CDate(Date) + 0.625
Range("I" & Say & ":t" & Say).Interior.ColorIndex = 4
Else
Cells(Say, "S").Value = Cells(1, "AM").Value
Range("I" & Say & ":t" & Say).Interior.ColorIndex = 4
End If
End If
'--B---------------------I
If Cells(Say, "I").Value = "B" Or Cells(Say, "I").Value = "b" Then
If Cells(1, "AO").Value < 100 Then
Cells(Say, "S").Value = CDate(Date) + 0.625
Range("I" & Say & ":t" & Say).Interior.ColorIndex = 6
Else
Cells(Say, "S").Value = Cells(1, "AO").Value
Range("I" & Say & ":t" & Say).Interior.ColorIndex = 6
End If
End If
'--C---------------------I
If Cells(Say, "I").Value = "C" Or Cells(Say, "I").Value = "c" Then
If Cells(1, "AQ").Value < 100 Then
Cells(Say, "S").Value = CDate(Date) + 0.625
Range("I" & Say & ":t" & Say).Interior.ColorIndex = 7
Else
Cells(Say, "S").Value = Cells(1, "AQ").Value
Range("I" & Say & ":t" & Say).Interior.ColorIndex = 7
End If
End If
'--D---------------------I
If Cells(Say, "I").Value = "D" Or Cells(Say, "I").Value = "d" Then
If Cells(1, "AU").Value < 100 Then
Cells(Say, "S").Value = CDate(Date) + 0.625
Range("I" & Say & ":t" & Say).Interior.ColorIndex = 8
Else
Cells(Say, "S").Value = Cells(1, "AU").Value
Range("I" & Say & ":t" & Say).Interior.ColorIndex = 8
End If
End If
Cells(Say, "t").Value = Cells(Say, "S").Value + Cells(Say, "r").Value
ATLA:
'------V SÜTUNU----------
If Cells(Say, "V").Value = "" Then
Cells(Say, "AF").Value = ""
Range("V" & Say & ":AG" & Say).Interior.ColorIndex = xlNone
GoTo ATLA1
End If
Call HESAPLA2
'--A---------------------V
If Cells(Say, "V").Value = "A" Or Cells(Say, "V").Value = "a" Then
If Cells(1, "AM").Value < 100 Then
Cells(Say, "AF").Value = CDate(Date) + 0.625
Range("V" & Say & ":AG" & Say).Interior.ColorIndex = 4
Else
Cells(Say, "AF").Value = Cells(1, "AM").Value
Range("V" & Say & ":AG" & Say).Interior.ColorIndex = 4
End If
End If
'--B---------------------V
If Cells(Say, "V").Value = "B" Or Cells(Say, "V").Value = "b" Then
If Cells(1, "AO").Value < 100 Then
Cells(Say, "AF").Value = CDate(Date) + 0.625
Range("V" & Say & ":AG" & Say).Interior.ColorIndex = 6
Else
Cells(Say, "AF").Value = Cells(1, "AO").Value
Range("V" & Say & ":AG" & Say).Interior.ColorIndex = 6
End If
End If
'--C---------------------V
If Cells(Say, "V").Value = "C" Or Cells(Say, "V").Value = "c" Then
If Cells(1, "AQ").Value < 100 Then
Cells(Say, "AF").Value = CDate(Date) + 0.625
Range("V" & Say & ":AG" & Say).Interior.ColorIndex = 7
Else
Cells(Say, "AF").Value = Cells(1, "AQ").Value
Range("V" & Say & ":AG" & Say).Interior.ColorIndex = 7
End If
End If
'--D---------------------V
If Cells(Say, "V").Value = "D" Or Cells(Say, "V").Value = "d" Then
If Cells(1, "AU").Value < 100 Then
Cells(Say, "AF").Value = CDate(Date) + 0.625
Range("V" & Say & ":AG" & Say).Interior.ColorIndex = 8
Else
Cells(Say, "AF").Value = Cells(1, "AU").Value
Range("V" & Say & ":AG" & Say).Interior.ColorIndex = 8
End If
End If
Cells(Say, "ag").Value = Cells(Say, "af").Value + Cells(Say, "ae").Value
ATLA1:
Next
End Sub
Sub HESAPLA2()
'On Error Resume Next
Columns("ca").Clear
Columns("cb").Clear
Columns("cc").Clear
Columns("cD").Clear
son = Sheets("Plan").Range("AS1").Value
For i = 2 To son
If Cells(i, "I").Value = "A" Or Cells(i, "I").Value = "a" Then
SN = Sheets("Plan").Range("CA65536").End(xlUp).Row + 1
Cells(SN, "CA").Value = Cells(i, "t").Value
End If
If Cells(i, "I").Value = "B" Or Cells(i, "I").Value = "b" Then
SN = Sheets("Plan").Range("CB65536").End(xlUp).Row + 1
Cells(SN, "CB").Value = Cells(i, "t").Value
End If
If Cells(i, "I").Value = "C" Or Cells(i, "I").Value = "c" Then
SN = Sheets("Plan").Range("CC65536").End(xlUp).Row + 1
Cells(SN, "CC").Value = Cells(i, "t").Value
End If
If Cells(i, "I").Value = "D" Or Cells(i, "I").Value = "d" Then
SN = Sheets("Plan").Range("CD65536").End(xlUp).Row + 1
Cells(SN, "CD").Value = Cells(i, "t").Value
End If
If Cells(i, "v").Value = "A" Or Cells(i, "v").Value = "a" Then
SN = Sheets("Plan").Range("CA65536").End(xlUp).Row + 1
Cells(SN, "CA").Value = Cells(i, "ag").Value
End If
If Cells(i, "v").Value = "B" Or Cells(i, "v").Value = "b" Then
SN = Sheets("Plan").Range("CB65536").End(xlUp).Row + 1
Cells(SN, "CB").Value = Cells(i, "ag").Value
End If
If Cells(i, "v").Value = "C" Or Cells(i, "v").Value = "c" Then
SN = Sheets("Plan").Range("CC65536").End(xlUp).Row + 1
Cells(SN, "CC").Value = Cells(i, "ag").Value
End If
If Cells(i, "v").Value = "D" Or Cells(i, "v").Value = "d" Then
SN = Sheets("Plan").Range("CD65536").End(xlUp).Row + 1
Cells(SN, "CD").Value = Cells(i, "ag").Value
End If
Next
Cells(1, "AM").Value = WorksheetFunction.Max(Range("CA1:CA65536"))
Cells(1, "AO").Value = WorksheetFunction.Max(Range("CB1:CB65536"))
Cells(1, "AQ").Value = WorksheetFunction.Max(Range("CC1:CC65536"))
Cells(1, "AU").Value = WorksheetFunction.Max(Range("CD1:CD65536"))
End Sub
Harika...Çok teşekkürler...
Sn.Fedeal ,sizinde inşallah varsa eğer her türlü sıkıntı,problemi Rabbim izale etsin inş.