На темплейте Excel-овской формы пытаюсь написать манюсенький макрос:
Код: Выделить всё
Sub Recalculate_Click()
Cells(3, 6).Value = Cells(5, 6).Value
For intNumber = 1 To 31
With ActiveSheet.CheckBoxes("cbo" & intNumber)
If .Value = xlOn Then
Cells(3, 6).Value = (Cells(3, 6).Value + Cells((5 + intNumber), 6).Value)
End If
End With
Next
End Sub
Оно и правда у Worksheet класса нет CheckBoxes.Run-time error '1004':
Unable to get the CheckBoxes property of the Worksheet class
А что делать? Как его заставить работать?
Помогите, кто может!