- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 250
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-18
|
¦^´_ 4# rick4615 - Sub ¥[¤J()
- With ¤u§@ªí1
- For i = 1 To 3 '¥[¤J3ÓCheckBox
- Set a = .Range("A1").Offset(, i)
- With .OLEObjects.Add(ClassType:="Forms.CheckBox.1", Left:=.Cells(i, 1).Left, Top:=.Cells(i, 1).Top, Width:=100, Height:=20)
- .LinkedCell = a.Address '«ü©w³sµ²Àx¦s®æ
- .Object.Caption = i
- End With
- Next
- End With
- End Sub
- Sub §R°£()
- Dim Ob As OLEObject
- For Each Ob In ActiveSheet.OLEObjects
- If Ob.progID = "Forms.CheckBox.1" Then Ob.Delete '¥u§R°£CheckBox
- Next
- End Sub
- Sub ¸ê®Æ¿é¥X()
- With ¤u§@ªí1
- For i = 1 To .OLEObjects.Count
- If .OLEObjects(i).progID = "Forms.CheckBox.1" Then
- If .OLEObjects(i).Object.Value Then
- Set a = Range(.OLEObjects(i).LinkedCell) '³Q¤Ä¿ï¦aªºCheckBox³sµ²Àx¦s®æ
- MsgBox a.Offset(1).Value & Chr(10) & a.Offset(2).Value & Chr(10) & a.Offset(3).Value 'Åã¥Ü³Q¤Ä¿ïªº¶µ¥Ø
- End If
- End If
- Next
- End With
- End Sub
½Æ»s¥N½X |
|