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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
Private Sub Valider_Final_Autre_Click()
Dim typeA As String
Dim formA As Integer
Dim nomCel As String
Dim colBouton As Integer
Application.ScreenUpdating = False
Call Ouvre
'Attribution type analyse en fonction de la sélection du traitement
If Range("E4") = "Régénération" Then
typeA = "Régé"
ElseIf Range("E4") = "React" Then
typeA = "React"
ElseIf Range("E4") = "Valorisation" Then
typeA = "Valorisation"
ElseIf Range("E4") = "Recyclage" Then
typeA = "Recyclage"
ElseIf Range("E4") = "Présulfuration" Then
typeA = "Presulf"
ElseIf Range("E4") = "Régé + React" Then
typeA = "Régé + React"
Else
typeA = "Régé + Présulf"
End If
formA = 4
If Range("N35").Value = True Then
nomCel = "N"
If InStr(Range("N39").Value, "Sieving") = 0 Then
Call RecuperationComplete(typeA, nomCel, formA)
Else
colBouton = recupNomCol(nomCel)
Call RecupSieving(colBouton, nomCel, formA, typeA)
End If
chbValiderN35.Value = False
Range("N36").Value = Date
ElseIf Range("O35").Value = True Then
nomCel = "O"
If InStr(Range("O39").Value, "Sieving") = 0 Then
Call RecuperationComplete(typeA, nomCel, formA)
Else
colBouton = recupNomCol(nomCel)
Call RecupSieving(colBouton, nomCel, formA, typeA)
End If
chbValiderO35.Value = False
Range("O36").Value = Date
ElseIf Range("P35").Value = True Then
nomCel = "P"
If InStr(Range("P39").Value, "Sieving") = 0 Then
Call RecuperationComplete(typeA, nomCel, formA)
Else
colBouton = recupNomCol(nomCel)
Call RecupSieving(colBouton, nomCel, formA, typeA)
End If
chbValiderP35.Value = False
Range("P36").Value = Date
ElseIf Range("Q35").Value = True Then
nomCel = "Q"
If InStr(Range("Q39").Value, "Sieving") = 0 Then
Call RecuperationComplete(typeA, nomCel, formA)
Else
colBouton = recupNomCol(nomCel)
Call RecupSieving(colBouton, nomCel, formA, typeA)
End If
chbValiderQ35.Value = False
Range("Q36").Value = Date
ElseIf Range("R35").Value = True Then
nomCel = "R"
If InStr(Range("R39").Value, "Sieving") = 0 Then
Call RecuperationComplete(typeA, nomCel, formA)
Else
colBouton = recupNomCol(nomCel)
Call RecupSieving(colBouton, nomCel, formA, typeA)
End If
chbValiderR35.Value = False
Range("R36").Value = Date
End If
Windows("exemple.xls").Activate
ActiveWorkbook.Save
ActiveWorkbook.Close
'
Application.ScreenUpdating = True
End Sub |