Реферат: Система компьютерной обработки данных
Worksheets("Лист4").Cells(k - 1, 5).Interior.Color = RGB(255, 255, 255)
Worksheets("Лист4").Cells(k, 2).Interior.Color = RGB(255, 255, 0)
Worksheets("Лист4").Cells(k, 3).Interior.Color = RGB(255, 255, 0)
Worksheets("Лист4").Cells(k, 4).Interior.Color = RGB(255, 255, 0)
Worksheets("Лист4").Cells(k, 5).Interior.Color = RGB(255, 255, 0)
Worksheets("Лист4").Cells(k, 2).Value = Str(S1)
Worksheets("Лист4").Cells(k, 3).Value = Str(s2)
Worksheets("Лист4").Cells(k, 4).Value = Str(S3)
Worksheets("Лист4").Cells(k, 5).Value = Str(s4)
S11 = S11 + S1
S22 = S22 + s2
S33 = S33 + S3
S44 = S44 + s4
S1 = 0
s2 = 0
S3 = 0
s4 = 0
k = k + 1
If (nk = 4) Or (nk = 9) Or (nk = 11) Then
Worksheets("Лист4").Cells(k, 1).Value = "Итого по ступени"
Worksheets("Лист4").Cells(k, 2).Value = Str(S11)
Worksheets("Лист4").Cells(k, 3).Value = Str(S22)
Worksheets("Лист4").Cells(k, 4).Value = Str(S33)
Worksheets("Лист4").Cells(k, 5).Value = Str(S44)
S11 = 0
S22 = 0
S33 = 0
S44 = 0
k = k + 1