- ©«¤l
- 2839
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2895
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-12-27
|
- Private Sub CommandButton1_Click()
- With Sheets("Sheet1")
- .[H1].Value = Label2.Caption
- .[H2].Value = Label3.Caption
- End With
- End Sub
- ¡@
- Private Sub ListBox1_Change()
- Label2.Caption = ListBox1.Column(0)
- Label3.Caption = ListBox1.Column(1)
- End Sub
- ¡@
- Private Sub TextBox1_Change()
- Dim i, Arr, xD, N&
- If TextBox1 = "" Then GoTo 101
- Arr = Sheet1.UsedRange.Columns("A:B").Cells
- Set xD = CreateObject("Scripting.Dictionary")
- For i = 2 To UBound(Arr)
- ¡@¡@If InStr(Arr(i, 2), TextBox1) Then N = N + 1: xD(N) = Array(Arr(i, 1), Arr(i, 2))
- Next i
- If N = 0 Then GoTo 101
- ListBox1.List = Application.Transpose(Application.Transpose(xD.items))
- ListBox1.Visible = True
- Exit Sub
- 101:
- Label2.Caption = "": Label3.Caption = "": ListBox1.Visible = False
- End Sub
- ¡@
- Private Sub UserForm_Initialize()
- ListBox1.Visible = False
- End Sub
½Æ»s¥N½X ªþ¥ó¤U¸ü¡G
©ú²Ó¬d¸ßv01.rar (53.28 KB)
¡@ |
|