- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 1# av8d - Option Explicit
- Private Sub Workbook_Open()
- '¨Ò¦p§Ú»s§@¨âÓOptionButton¡A¤À§O©R¦W¬°A1©MZ1
- '**--- ¨âÓOptionButton ¬O¦P¤@¸s²Õ
- Dim e As Shape, Rng As Range
- With Sheets("Sheet1")
- For Each e In .Shapes
- If e.Name = "A1" Or e.Name = "Z1" Then
- If e.Type = 12 Then '±±¨î¤u¨ã½c¤u¨ã¦Cªº OptionButton
- If .OLEObjects(1).Object.Value Then Set Rng = .Range(e.Name)
- ElseIf .Shapes(1).Type = 8 Then 'ªí³æ¤u¨ã¦Cªº Option Button
- If e.OLEFormat.Object.Value Then Set Rng = .Range(e.Name)
- End If
- End If
- Next
- End With
- End Sub
½Æ»s¥N½X |
|