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

[µo°Ý] ½Ð°Ý¦p¦óÅýªí³æÃö³¬«á¤£²M°£¤W¦¸ªº¸ê®Æ©O?

[µo°Ý] ½Ð°Ý¦p¦óÅýªí³æÃö³¬«á¤£²M°£¤W¦¸ªº¸ê®Æ©O?

¦p¼ÐÃD©Ò¥Ü....
¥t·Q½Ð°Ý¦p¦ó³]©w¥iÅý¥H¤Uµ{¦¡½X¥i«ü©w¦X¨ÖÀx¦s®æ©O?  ¨Ï¥Î.VALUE¶Ü?½Ð°Ý¸Ó¦p¦ó®M¥Î
  1. Private Sub Worksheet_SelectionChange(ByVal Target As Range)
  2. If Target.Address = "$A$4" Then UserForm1.Show
  3. End Sub
½Æ»s¥N½X

¦Û­qªí³æ-¤£²M°£¤W¤@¦¸¸ê®Æ.zip (13.6 KB)

¦^´_ 1# starry1314

¥t·Q½Ð°Ý¦p¦ó³]©w¥iÅý¥H¤Uµ{¦¡½X¥i«ü©w¦X¨ÖÀx¦s®æ©O?

µ¹«ü©w¦X¨ÖÀx¦s®æªº²Ä¤@­ÓValue

¤£²M°£¤W¦¸ªº¸ê®Æ,ªí³æÅã¥Ü¤W¦¸ªº¿ï¾Ü.¬O³o¼Ë¶Ü?
  1. Private Sub UserForm_Initialize()
  2.     With Sheets("¥XÀ\³æ")
  3.         CheckBox1.Value = IIf(.Range("C100") = "¤û¦×", True, False)
  4.         CheckBox2.Value = IIf(.Range("C101") = "Âû¦×", True, False)
  5.     End With
  6. End Sub

  7. Private Sub ½T©w_Click()
  8.     With Sheets("¥XÀ\³æ")
  9.         .Range("C100") = IIf(CheckBox1, "¤û¦×", "")
  10.         .Range("C101") = IIf(CheckBox2, "Âû¦×", "")
  11.     End With
  12.     Unload Me 'Ãö³¬ªí³æ
  13. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 2# GBKEE


    1.¤£¦n·N«ä~¬O§Ú¨Sªí¹F²M°£  ¬O«ü³o¶µ¥N½X¦p¦ó¥i«ü©w¦X¨Ö¹L«áªºÀx¦s®æ
  1. Private Sub Worksheet_SelectionChange(ByVal Target As Range)
  2. If Target.Address = "$A$4" Then UserForm1.Show
  3. End Sub
½Æ»s¥N½X
¦pªG«ü¦V¦X¨ÖÀx¦s®æªº¸Ü´N¨Sªk¨q¥Xªí³æ,

2.¬Oªº~¬O§Ú­nªº¥\¯à,·PÁª©¥D

TOP

¦^´_ 3# starry1314
µ¹«ü©w¦X¨ÖÀx¦s®æªº²Ä¤@­ÓÀx¦s®æ
  1. If Target.Cells(1).Address = "$A$4" Then UserForm1.Show
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 4# GBKEE


    ·PÁ¡I¡I¡I

TOP

¥»©«³Ì«á¥Ñ starry1314 ©ó 2015-5-19 13:55 ½s¿è

¦^´_ 4# GBKEE

ª©¥D~¤£¦n·N«ä¡I½Ð°Ý³o¥\¯à¬O¦³­­©w¼Æ¶q¶Ü¡H
¦]§Úµ§¼Æ¼W¥[¨ì¢°¦Ê¦hµ§¤§«á¡A¤W¦¸ÂI¿ï°O¿ý´N¥¢®Ä¤F
¦Û­qªí³æ-¤£²M°£¤W¤@¦¸¸ê®Æ.rar (31.62 KB)

·Q¥t¥~½Ð°Ý¦Û¦æ¿é¤J¨ºÃä­n¦p¦ó¼g©O?
TextBox1.text = IIF(.RANGE("C99") = TEXTBOX1.text

TOP

¦^´_ 6# starry1314

¦Û¦æ¿é¤J¤w¸Ñ¨M
    Sheets("¤u§@ªí1").Range("C227") = TextBox1.Text

TOP

¦^´_ 6# starry1314

Private Sub UserFrom_Initialize()  ³o¸Ì¿ù»~
Private Sub UserForm_Initialize() ³o¬O¥¿½Tªº


Private Sub ½T©w_Click()
    With Sheets("¤u§@ªí1")
        .Range("C100") = IIf(CheckBox1, "¤û¦×,", "")
        .Range("C101") = IIf(CheckBox2, "Âû¦×,", "")
³£¬O¦h¤@,
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 8# GBKEE


    ¤£¦n·N«ä~­ì¨Ó¬O§Ú¦Û¤v²Ê¤ß¤F,
¤£¹L¦hªº,¬O¬G·N¥[ªº~­èµo²{­ì¨Ó¬O¤W¤@­Óµ{¦¡½X¤Ö¥[, ¤£¤@­P

TOP

¦^´_ 9# starry1314
  1. ·Q¥t¥~½Ð°Ý¦Û¦æ¿é¤J¨ºÃä­n¦p¦ó¼g©O?
  2. TextBox1.text = IIF(.RANGE("C99") = TEXTBOX1.text
½Æ»s¥N½X
¬O³o¼Ë¶Ü?
  1. Private Sub UserFoRm_Initialize()
  2.     With Sheets("¤u§@ªí1")
  3.         TextBox1 = .Range("C100")
½Æ»s¥N½X
  1. Private Sub ½T©w_Click()
  2.     With Sheets("¤u§@ªí1")
  3.      .Range("C100") = TextBox1
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ¨C¤ÑµL©Ò¨Æ¨Æ¡A¬O¤H¥Íªº®ø¶OªÌ¡A¿n·¥¡B¦³¥Î¤~¬O¤H¥Íªº³Ð³yªÌ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD