ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] §PÂ_checkbox¬°true¤§«á±N¸ê®Æ¿ï¨ú

¦^´_ 2# rick4615
  1. Sub ¥[¤J()
  2. With ¤u§@ªí1
  3.   For i = 1 To 3
  4.   Set a = .Range("A1").Offset(, i)
  5.      With .OLEObjects.Add(ClassType:="Forms.CheckBox.1", Left:=.Cells(i, 1).Left, Top:=.Cells(i, 1).Top, Width:=100, Height:=20)
  6.      .LinkedCell = a.Address
  7.      .Object.Caption = i
  8.      End With
  9.   Next
  10. End With
  11. End Sub
  12. Sub §R°£()
  13. ActiveSheet.OLEObjects.Delete
  14. End Sub
  15. Sub ¸ê®Æ¿é¥X()
  16. With ¤u§@ªí1
  17. For i = 1 To .OLEObjects.Count
  18.    If .OLEObjects(i).Object.Value Then
  19.       Set a = Range(.OLEObjects(i).LinkedCell)
  20.       MsgBox a.Offset(1).Value & Chr(10) & a.Offset(2).Value & Chr(10) & a.Offset(3).Value
  21.     End If
  22. Next
  23. End With
  24. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

QQ ¸É¥R¤@¤U
¦]¤§«e·s¼Wcheckbox¤§µ{¦¡½X¦³ÂI°ÝÃD
checkbox¨Ã¤£·|¨Ì·Ó¸¹½X»¼¼W  ·|¦³¸õ¸¹°Ê§@@@

TOP

        ÀR«ä¦Û¦b : ¤H¨ÆªºÁ}Ãø»PµZ¿i¡A´N¬O¤@ºØ¦ÒÅç¡C
ªð¦^¦Cªí ¤W¤@¥DÃD