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

[µo°Ý] ComboBox ¼W¥[¿ï¶µ

[µo°Ý] ComboBox ¼W¥[¿ï¶µ

¤p§Ì·Q½Ð°Ý¦p¦ó¥Îµ{¦¡½X¼gComboBox­nÅã¥Üªº­È???
¦Ó§Ú­nÅã¥Üªº­È·|¥ý¿é¤J¦bExcelªí³æ¸Ì´£¨ÑComboBoxÅã¥Ü     ¨Ò¦p:A1:A10
¦A¨Ó´N¬O­nÅã¥Üªº­È·|¼W¥[     ¨Ò¦p:A1:A20
­n¦p¦óÅýComboBox¤]¦Û°Êªº¼W¥[???

¦^´_ 13# ¤pµØ
±±¨î¶µªº²M³æ=Àx¦s®æ(½d³ò)ªº­È©Î¬O°}¦C
  ¦pYear01.List =Range(t4:t20).Value   
  ¦pYear01.List =array("a","b","c","d","e")
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 12# GBKEE


ÁÂÁÂ¥ý¶i!!   
   
§âµ{¦¡½X¼g¦bEnter¨Æ¥ó¡A­È´N¥i¥HÅã¥Ü¥X¨Ó¤F

¥t¥~·Q½Ð°Ýª©¥D
   
Year01.List = x.Range("t4", x.[t4].End(xlDown)).Value    ³o¥yµ{¦¡½X¥Nªí¬Æ»ò·N«ä??
   
¦]¬°§Ú¦³°Ñ¦Ò§O¤Hªº¼gªk   ¥L¬O¥Î°j°éªº¼gªk¥[¤WAdditem

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-5-26 07:15 ½s¿è

¦^´_ 11# ¤pµØ

  1. Private Sub Year01_Change()
  2.     Set x = Sheets("Base")
  3.     For I = 4 To 20
  4.         If x.Cells(I, 20) <> "" Then
  5.             Year01.AddItem x.Cells(I, 20)
  6.         End If     '***§A¹ï½Õ¤F**
  7.      Next I        '***§A¹ï½Õ¤F**
  8. End Sub
½Æ»s¥N½X
  ªþÀɪí³æµ{¦¡½X¦p­n¥i¥H¨Ï¥Î   x.[t4].End(xlDown)
¤£¥[ x.  [t4]¬OActiveSheet(¨Ï¥Î¤¤)¤u§@ªíªºÀx¦s®æ,µLªkµ²¦X"Base"ªºÀx¦s®æ»PActiveSheetªºÀx¦s®æ
¦p "Base"¬OActiveSheet®É ´N¥i¥H¤£¥[ x.  
Private Sub Year01_Change()
Set x = Sheets("Base")
ComboBox1.List = x.Range("t4", x.[t4].End(xlDown)).Value
'** ComboBox1 *** ¬O§_­n§ï¦¨ Year01
End Sub

1#»¡ ­n¦p¦óÅýComboBox¤]¦Û°Êªº¼W¥[
¬O§Æ±æÂI¿ïYear01¥i¥H¸ü¤J©Ò¦³ªº¦~«×¸ê®Æ¨Ñ¿ï¾Ü,¥i¦p¤U
Enter¡BExit ¨Æ¥ó
Enter ¥D­nµo¥Í¦b¤@­Ó±±¨î¶µ¡A±q¦P¤@ªí³æ¤Wªº¥t¤@­Ó±±¨î¶µ¨ú±o¾nÂI¤§«e¡FExit ·|¦b¤@­Ó±±¨î¶µ¥¢¥h¾nÂI®Éµo¥Í¡C
  1. Private Sub Year01_Enter()
  2.     Set x = Sheets("Base")
  3.     Year01.List = x.Range("t4", x.[t4].End(xlDown)).Value
  4. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 9# GBKEE


    ¦³¸Õ¹L°j°éªº¼gªk  ¥i¬O­ÈÁÙ¬OÅã¥Ü¤£¥X¨Ó  ¤£ª¾¹D°ÝÃDÂI¦b­þ......
  1. Private Sub Year01_Change()
  2. Set x = Sheets("Base")
  3. For I = 4 To 20
  4.      If x.Cells(I, 20) <> "" Then
  5.      Year01.AddItem x.Cells(I, 20)
  6.      Next I
  7.      End If
  8. End Sub
½Æ»s¥N½X

TOP

¦^´_ 9# GBKEE

OT DataBase1.rar (31.06 KB)

TOP

¦^´_ 8# ¤pµØ
½ÐªþÀɬݬÝ
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 7# GBKEE


    ¥Î¤FÁÙ¬O¤£·|Åã¥Ü­È.......
   
   §Ú§ä¤F¶WªO¤§«eªº©w¸q¦WºÙ¤èªk    ´N·|Åã¥Ü­È¤F

TOP

¦^´_ 5# ¤pµØ
¤u§@ªí¤Wªº±±¨î¶µ ComboBox ¨Æ¥ó ComboBox1_GotFocus()
  1. Private Sub ComboBox1_GotFocus()
  2.     ComboBox1.List = Range("A1", [A1].End(xlDown)).Value
  3. End Sub
½Æ»s¥N½X
ªí³æ¤Wªº±±¨î¶µ ComboBox ¨Æ¥ó ComboBox1_Enter()
  1. Private Sub ComboBox1_Enter()
  2.     ComboBox1.List = Range("A1", [A1].End(xlDown)).Value
  3. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_  GBKEE
    µ{¦¡½X¿é¤J¶i¥h«áÁÙ¬OµLªkÅã¥Ü­È
   A1:A10ªº­È¨Ò¦p¬O 1¡B2¡B3.....10
   «áÄò ...
¤pµØ µoªí©ó 2013-5-23 21:42

¦]¬°§A­n¦b¨C¦¸¼W¥[¸ê®Æ®É³£­nÅܧóComboBox¿ï³æ¤ºªº¸ê®Æ,
©Ò¥H¸ÕµÛ±Nµ{¦¡©ñ¦b Change ¨Æ¥ó³B²zµ{§Ç¤º :
  1. Private Sub Worksheet_Change(ByVal Target As Range)
  2.   ComboBox1.List = Range("A1", [A1].End(xlDown)).Value
  3. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¤f»¡¦n¸Ü¡B¤ß·Q¦n·N¡B¨­¦æ¦n¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD