- ©«¤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
|
¦^´_ 14# dafa - Private Sub UserForm_Initialize()
- With ListBox1
- .Visible = False
- .ColumnCount = 4 '«ü©w¤U©Ô¦¡²M³æ¤è¶ô©Î²M³æ¤è¶ôªºÅã¥Ü¦æ¼Æ¡C
- .ColumnWidths = "370,40,40,40" '«ü©w¦h¦æ¤U©Ô¦¡²M³æ¤è¶ô©Î²M³æ¤è¶ô¤¤ªº¦U¦æ¼e«×¡C
- End With
- End Sub
- Private Sub ListBox1_Change()
- AA = Application.Index(ListBox1.List, ListBox1.ListIndex + 1) '°}¦C¤¤©â¥X«ü©wªº¤¸¯À°}¦C(³o¸Ì¬O¤@ºû°}¦C)
- Label2.Caption = "[" & Join(AA, "] ; [") & "]" 'Join µ²¦X¤@ºû°}¦Cªº¤å¦r
- End Sub
- Private Sub TextBox1_Change()
- Dim Ar(), E As Range
- If TextBox1 <> "" Then
- ReDim Ar(0)
- For Each E In Sheet1.UsedRange.Columns(1).Cells
- If E Like "*" & TextBox1 & "*" Then
- Ar(UBound(Ar)) = E.Resize(, 4).Value
- ReDim Preserve Ar(UBound(Ar) + 1)
- End If
- Next
- If UBound(Ar) > 0 Then
- ReDim Preserve Ar(UBound(Ar) - 1)
- Ar = Application.Transpose(Application.Transpose(Ar))
- ListBox1.List = Ar
- ListBox1.Visible = True
- Else
- Label2.Caption = ""
- ListBox1.Visible = False
- End If
- Else
- Label2.Caption = ""
- ListBox1.Visible = False
- End If
- End Sub
½Æ»s¥N½X |
|