½Ð±Ð¦U¦ì¥ý¶i¦hÓOptionButton³]©w
- ©«¤l
- 132
- ¥DÃD
- 56
- ºëµØ
- 0
- ¿n¤À
- 190
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 365
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-5-17
- ³Ì«áµn¿ý
- 2024-4-29
|
½Ð±Ð¦U¦ì¥ý¶i¦hÓOptionButton³]©w
§Úªºµ{¦¡n¼g¦¨¨Ï¥ÎOptionButton°µ¿ï¶µ:
¦bframe5¤¤¦³5ÓOptionButton,¿ï¾Ü¤F¤§«á±µ¤U¨Ó·|¨ìframe28 ¤S·|¦³2ÓOptionButton°µ¿ï¾Ü
µ{¦¡¦p¤U:
²Ä¤@²ÕOptionButton
'------------------------------
flg = False
i = 1
For Each opt1 In Frame5.Controls
If opt1.Value = True Then
flg = True
C_Index = opt1.Caption
Exit For
End If
If i = 6 And flg = False Then
mybtn = MsgBox(mymsg5, vbExclamation, mytitle)
Exit Sub
End If
i = i + 1
Next
'---------------------
¤¤¶¡¦³¨ä¥Lµ{¦¡
'---------------------
²Ä¤G²ÕOptionButton
flg = False
iE = 1
For Each opt2 In Frame28.Controls
If opt2.Value = True Then '-----------------------°õ¦æ¨ì³o¤@¦æ«oÅã¥Ü:°õ¦æ¶¥¬q¿ù»~ '438' ª«¥ó¤£¤ä´©¦¹ÄݩʩΤèªk
flg = True ½Ð°Ý§Ú¸Ó¦p¦ó§ï?
PR_Index = opt2.Caption
Exit For
End If
If iE = 2 And flg = False Then
mybtn = MsgBox(mymsg6, vbExclamation, mytitle)
Exit Sub
End If
iE = iE + 1
Next |
|
|
|
|
|
|
- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¦^´_ 1# acdx
If TypeName(opt2) = "OptionButton" then '¥ý½T©wopt2¬OOptionButton±±¨î¶µ
If opt2.Value Then '¤~¯à½T©w¥¦¦³ValueÄÝ©Ê
flg = True
PR_Index = opt2.Caption
Exit For
End If
End if |
|
|
|
|
|
|
- ©«¤l
- 605
- ¥DÃD
- 92
- ºëµØ
- 0
- ¿n¤À
- 648
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- macau
- µù¥U®É¶¡
- 2013-4-5
- ³Ì«áµn¿ý
- 2019-2-10
|
¦^´_ 2# stillfish00
¨ú¥©ªk
¥[ on error resume next
¥i¦æ¶Ü¡H |
|
ss
|
|
|
|
|
- ©«¤l
- 132
- ¥DÃD
- 56
- ºëµØ
- 0
- ¿n¤À
- 190
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 365
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-5-17
- ³Ì«áµn¿ý
- 2024-4-29
|
¦^´_ 3# sunnyso
³o¤@©Û¯u¬O§®ªü~°ª©Û
ÁÂ°Õ |
|
|
|
|
|
|
- ©«¤l
- 132
- ¥DÃD
- 56
- ºëµØ
- 0
- ¿n¤À
- 190
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 365
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-5-17
- ³Ì«áµn¿ý
- 2024-4-29
|
¦^´_ 2# stillfish00
¥[¤Jfish00 ¤j¤jªº±ø¥ó¦¡«áµo²{
For Each opt2 In Frame28.Controls·|±qOptionButton11¶}©lÀˬd
¦Ó§ÚªºOptionButton11~16¬O¦bframe5¤¤, OptionButton17~18¬O¦bframe28¤¤
©Ò¥H·í§Úncheck frame28¤¤ªºOptionButton®Éµ{¦¡·|¥ý±qOptionButton11,12,13.....,17,18Àˬd
·í§ÚªºUserform¸Ì¦³¦hÓframe§t¦³OptionButton®É¸Ó¦p¦óÁקKµ{¦¡¨C¦¸³£¥Ñ²Ä¤@Ó(OptionButton11)¶}©lÀˬd?
¦p¦ó«ü©wµ{¦¡¥ÑOptionButton17¶}©lÀˬd? |
|
|
|
|
|
|
- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¦^´_ 5# acdx
·í§ÚªºUserform¸Ì¦³¦hÓframe§t¦³OptionButton®É¸Ó¦p¦óÁקKµ{¦¡¨C¦¸³£¥Ñ²Ä¤@Ó(OptionButton11)¶}©lÀˬd?
µ{¦¡¤£·|±q²Ä¤@ÓÀˬd
For Each opt2 In Frame28.Controls
³o¬O¹ï©Ò¦³¦bFrame28¤º³¡ªº±±¨î¶µ¡A°£«D§AªºFrame5¤S¦bFrame28¤º³¡¡A§_«hÀ³¸Ó¤£·|¦³§A»¡ªº±¡ªp¡C
¨º¡A°²³]Frame5¯uªº¦bFrame28¤º³¡¡A
§A¥u·QÀˬdFrame28¤º²Ä¤@¼hªºOptionButton(¤£§t¤lFrame¤º³¡ªºOptionButton)
¥i¥H¥Î..
For Each opt2 In Frame28.Controls
If opt2.parent is Frame28 and TypeName(opt2) = "OptionButton" then
³o¼Ë¥h¿z¿ï |
|
|
|
|
|
|