- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 249
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-17
|
¦^´_ 1# yangjie
¸Õ¸Õ¬Ý- Private Sub ListBox1_Change() 'ÂI¿ïLISTBOX1
- With ListBox1
- For i = 1 To 3
- Cells(1, i) = .List(.ListIndex, i - 1)
- Next
- End With
- End Sub
- Private Sub ListBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean) 'Â÷¶}LISTBOX1
- ListBox1.Visible = False
- End Sub
- Private Sub UserForm_Initialize() 'ªí³æªì©l¤Æ
- Set d = CreateObject("Scripting.Dictionary")
- With Sheets("°ò¥»¸ê®Æ")
- For Each a In .Range(.Cells(2, 4), .Cells(65536, 4).End(xlUp))
- d(a & "") = Array(a.Value, a.Offset(, -3).Value, a.Offset(, -2).Value)
- Next
- End With
- If d.Count = 0 Then Exit Sub
- With ListBox1
- .List = Application.Transpose(Application.Transpose(d.items))
- .ColumnCount = 3
- .Visible = True
- End With
- End Sub
½Æ»s¥N½X |
|