1 2 3 4 5 6 7 8 9 10 11 12 13
| Sub test()
Dim i As Integer
Dim score As Integer, coefficient(), Icoeff As Integer
'coefficient = Array(Question0,Question1,Question2,Question3,Question4,Question5,Question6,Question7,Question8,Question9,Question10)
coefficient = Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
With Sheets("Attitude_général")
For i = 1 To .OptionButtons.Count Step 3
Icoeff = Icoeff + 1
score = score + (.OptionButtons(i) * coefficient(Icoeff))
Next i
End With
Sheets("Attitude").Cells(34, 12).Value = Abs(score)
End Sub |
Partager