Optionbutton'u döngüsel olarak kontrol etmek istiyorum fakat aşğıda yazmış olduğum komut çalışmamaktadır. bu konuda yardımcı olabilicek kimse var mı?
Komutun optionbutton'un i değişkeniyle birleşip kontrol etmesi gerekmekte.
For i = 1 To 120 Step 5
If OptionButton & i.Value = True Then
d1 = 5
End If
If OptionButton & i.Value = True Then
d1 = 4
End If
If OptionButton & i.Value = True Then
d1 = 3
End If
If OptionButton & i.Value = True Then
d1 = 2
End If
If OptionButton & i.Value = True Then
d1 = 1
End If
k = k + 1
Worksheets("data").Cells(kayitsatir, 9).Value = d1
Next
Komutun optionbutton'un i değişkeniyle birleşip kontrol etmesi gerekmekte.
For i = 1 To 120 Step 5
If OptionButton & i.Value = True Then
d1 = 5
End If
If OptionButton & i.Value = True Then
d1 = 4
End If
If OptionButton & i.Value = True Then
d1 = 3
End If
If OptionButton & i.Value = True Then
d1 = 2
End If
If OptionButton & i.Value = True Then
d1 = 1
End If
k = k + 1
Worksheets("data").Cells(kayitsatir, 9).Value = d1
Next
