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

[µo°Ý] ½Æ»s¸ê®ÆÂà¼g¨ì¥t¤@¤u§@ªí

¦^´_ 5# GBKEE

GBKEE§A¦n,
½Ð°Ý­Y½Æ»s½d³ò¤£¬O³sÄò½d³ò®É, ¸Ó«ç»ò°µ?
¨Ò¦p: ¥Øªº¦a¤u§@ªí¡¨final¡¨ªºCÄæ¡y³W®æ¡z§R°£, ¨Ó·½¤u§@ªí¬O³sÄò½d³ò, ¦ý¥Øªº¦a¤u§@ªí¤£¬O³sÄò½d³ò®É.
learner

TOP

¦^´_ 4# yliu
  1. Private Sub CommandButton1_Click()
  2.     Dim rowcnt&, rowcnt_login&
  3.     Dim g As Integer, §Ç¸¹ As Range, I As Integer
  4.     Set §Ç¸¹ = Sheets("login").[B9:J19]                             'ª«¥ó : ³]©w½Æ»sªº½d³ò
  5.     g = Application.CountA(Sheets("final").[A:A]) + 1               'Ū¨úAø󦳸ê®Æ¼ÆªºÀx¦s®æ¼Æ +1
  6.     I = 1
  7.     Do Until §Ç¸¹.Range("A" & I) = "" Or I > §Ç¸¹.Rows.Count
  8.          '½d³ò ªº Range("A" & I)->½d³òªº"A"øó  ,Rows.Count;½d³ò¦C¼Æªº­pºâ
  9.         With Sheets("final")
  10.             .Cells(g, "A") = Sheets("login").ComboBox1.Value
  11.             .Cells(g, "B").Resize(1, §Ç¸¹.Columns.Count) = §Ç¸¹.Rows(I).Value
  12.             g = g + 1
  13.             I = I + 1
  14.         End With
  15.     Loop
  16. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 2# Hsieh

·PÁÂHsiehª©¤jªºÀ°¦£¡A¥i¥H¨Ï¥Î¤F¡AÁÂÁ¡I
learner

TOP

¦^´_ 1# yliu
  1. Private Sub ListBox1_Change()
  2. Dim ar()
  3. With ListBox1
  4. For i = 0 To .ListCount - 1
  5.   If .Selected(i) Then
  6.   ReDim Preserve ar(s)
  7.   ar(s) = Array(i + 1, .List(i, 0), .List(i, 1), .List(i, 2), .List(i, 3))
  8.   s = s + 1
  9.   End If
  10. Next
  11. End With
  12. [A9:E19] = ""
  13. If s > 0 Then [A9].Resize(s, 5) = Application.Transpose(Application.Transpose(ar))
  14. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

ListBox ²M³æ¤ºªº¸ê®Æ¼g¤J¤u§@ªí¤WªºÀx¦s®æ

½Ð±Ð°ª¤â,
¦p¦ó±NListBox ²M³æ¤ºªº¸ê®Æ¼g¤J¤u§@ªí¤WªºÀx¦s®æ,¦p¹Ï,
¿ï¨ú§Ç¸¹001,002«á,¸ê®Æ§e²{©óÀx¦s®æA9:E10.
ListBox°ÝÃD (2).zip (19.12 KB)
learner

TOP

        ÀR«ä¦Û¦b : §ïÅܦۤv¬O¦Û±Ï¡A¼vÅT§O¤H¬O±Ï¤H¡C
ªð¦^¦Cªí ¤W¤@¥DÃD