[VBA ] excel OptionButton事件的問題
在下正在寫一些button事件
If OptionButton1.Value = True Then
XXXX = B2
...
...
End If
If OptionButton2.Value = True Then
XXXX = B3
...
...
End If
OptionButton大概有50個以上
還有可能會增加
裡面數字有很簡單的關聯
但卻不知道OptionButton能否寫成陣列
或者在OptionButton後面串上變數
有試著搜尋文章卻找不到(因為太簡單嗎> <)
也試著改寫都會有錯誤
請問這有辦法寫成迴圈嗎
還是只能一個一個寫出來?
我沒有學過VB
想利用excel寫個簡單的工具
抱歉問了個笨問題
感謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.167.61.84