- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-9-4 11:14 ½s¿è
¦^´_ 12# yliu - Private Sub ListBox2_Change()
- Dim lrow, irow, ai As Integer, AR, S As String
- With ListBox1
- AR = .List '.List-> ( 0 TO .ListCount - 1, 0 TO 9) ListBoxªºColumnCount ÄÝ©Ê ³Ì¦h¥u¯à¦³ 10 ¦æ (0 ¨ì 9)¡C
- '³oListBox1¥u¦³4¦æ¸ê®Æ,«á±ªº5¦æ-9¦æ = Null,¨Ï¥ÎIndex ¨ç¼Æ·|¿ù»~
- If .ListCount > 0 Then ReDim Preserve AR(0 To .ListCount - 1, 0 To .ColumnCount - 1) '®ø°£ «á±ªº5¦æ-9¦æªº Null
- For lrow = 0 To .ListCount - 1
- If .Selected(lrow) Then
- S = S & Join(Application.Index(AR, lrow + IIf(UBound(AR) = 0, 0, 1)), "") '¬ö¿ý¤w¤Ä¿ïªº¸ê®Æ
- End If
- Next
- .Clear
- End With
- [A9:E19] = ""
- With ListBox2
- For lrow = 0 To .ListCount - 1
- If .Selected(lrow) Then
- With Sheets(Sh)
- ai = 2
- Do While .Cells(ai, "A") <> ""
- If .Cells(ai, "A") = ListBox2.List(lrow, 0) Then
- With ListBox1
- .AddItem
- irow = .ListCount
- .List(irow - 1, 0) = Sheets(Sh).Cells(ai, "A")
- .List(irow - 1, 1) = Sheets(Sh).Cells(ai, "B")
- .List(irow - 1, 2) = Sheets(Sh).Cells(ai, "C")
- .List(irow - 1, 3) = Sheets(Sh).Cells(ai, "D")
- .List(irow - 1, 4) = Sheets(Sh).Cells(ai, "E")
- If InStr(S, Application.Phonetic(Sheets(Sh).Cells(ai, "A").Resize(, 5))) Then '¤ñ¹ï: ¬ö¿ý¤w¤Ä¿ïªº¸ê®Æ
- .Selected(.ListCount - 1) = True
- End If
- End With
- End If
- ai = ai + 1
- Loop
- End With
- End If
- Next
- End With
- End Sub
½Æ»s¥N½X |
|