Dim i as Long For i=0 to 69 If Cells(i+9,3).Offset(i,0).Interior.Color 65535 Then Cells(i+9,2) 0.25 If Cells(9+i,11).Interior.Color 65535 Then Cells(i+9,2) Cells(i+9,2) + 0.25 If cells(i+9,18).Interior.Color 65535 Then Cells(i+9,2) Cells(i+9,2) + 0.25 If Cells(9+i,25).Interior.Color 65535 Then Cells(i+9,2) Cells(i+9,2) + 0.25 Next i
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionIf Range("C9").Interior.Color 65535 Then Range("B9") 0.25 If Range("K9").Interior.Color 65535 Then Range("B9") Range("B9") + 0.25 If Range("R9").Interior.Color 65535 Then Range("B9") Range("B9") + 0.25 If Range("Y9").Interior.Color 65535 Then Range("B9") Range("B9") + 0.25 If Range("C10").Interior.Color 65535 Then Range("B10") 0.25 If Range("K10").Interior.Color 65535 Then Range("B10") Range("B10") + 0.25 If Range("R10").Interior.Color 65535 Then Range("B10") Range("B10") + 0.25 If Range("Y10").Interior.Color 65535 Then Range("B10") Range("B10") + 0.25 If Range("C11").Interior.Color 65535 Then Range("B11") 0.25 If Range("K11").Interior.Color 65535 Then Range("B11") Range("B11") + 0.25 If Range("R11").Interior.Color 65535 Then Range("B11") Range("B11") + 0.25 If Range("Y11").Interior.Color 65535 Then Range("B11") Range("B11") + 0.25
If Range("C9").Interior.Color 65535 Then Range("B9") 0.25 If Range("K9").Interior.Color 65535 Then Range("B9") Range("B9") + 0.25 If Range("R9").Interior.Color 65535 Then Range("B9") Range("B9") + 0.25 If Range("Y9").Interior.Color 65535 Then Range("B9") Range("B9") + 0.25 If Range("D10").Interior.Color 65535 Then Range("B10") 0.25 If Range("L10").Interior.Color 65535 Then Range("B10") Range("B10") + 0.25 If Range("S10").Interior.Color 65535 Then Range("B10") Range("B10") + 0.25 If Range("Z10").Interior.Color 65535 Then Range("B10") Range("B10") + 0.25 If Range("E11").Interior.Color 65535 Then Range("B11") 0.25 If Range("M11").Interior.Color 65535 Then Range("B11") Range("B11") + 0.25 If Range("T11").Interior.Color 65535 Then Range("B11") Range("B11") + 0.25 If Range("AA11").Interior.Color 65535 Then Range("B11") Range("B11") + 0.25