- ©«¤l
- 47
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 74
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows XP
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Macau
- µù¥U®É¶¡
- 2011-6-15
- ³Ì«áµn¿ý
- 2016-7-4
|
¥»©«³Ì«á¥Ñ StanleyVic ©ó 2011-8-10 11:39 ½s¿è
¦^´_ 6# GBKEE
Q1: ªGµMµ¹§A´£¿ô¤F,¬O§Úªº¥N½X¥X¤F¨Ç°ÝÃD! ÁöµM§Ú¨S¹ïMultiPage1_Change°µ¹L¤°»ò...¦ý§ÚªºUserform_initialize ¤Þ¥Î¤FWith ListView1¨Æ¥ó,¥i¬O....·í§Ú§R°£«á, ÁöµM¨S¦A¥X²{µe±¨ê·s¤£¤Fªº±¡ªp.¦ýµL©`..¥X¨ÓªºListViewµ²ªG¦³ÂI©Ç.. ( ¤v§â°ÝÃDªºVBA ±a¥X,¥Í¦¨ªþ¥ó: ·Ð½Ð¤j¤j¬d¾\¤Î«ü¾É:
Question01.zip (264.51 KB)
¥N½X¦p¤U :- Private Sub UserForm_Initialize()
- With ListView1
- .Gridlines = True
- .View = lvwReport
- .ColumnHeaders.Add , , "Searching Result ...", 180
- End With
- End Sub
- Private Sub ToggleButton4_Click()
- Dim DPC As Range
- If Userform1.TextBox18.Text <> "" And ToggleButton4 = True Then
- ListView1.ListItems.Clear
- Userform1.ToggleButton5 = False
- Userform1.ToggleButton6 = False
- Userform1.ToggleButton7 = False
- Sheets("Ref").Activate
- For Each DPC In [J6:J3505]
- If DPC Like "*" & TextBox18.Text & "*" Then
- DPC.Offset(0, 2).Value = DPC.Offset(0, 0).Value
- ListView1.ListItems.Add , , DPC.Value
- End If
- Next
- Else
- [L6:L3505] = ""
- TextBox18.Value = ""
- ListView1.ListItems.Clear
- End If
- End Sub
½Æ»s¥N½X '------------------------------------
Q2: ¸ò¾Ú§Aªº¤Þ»â,§Ú°µ¤FӼ˪©,½Ð¤j¤j¹L¥Ø. ¦ýÁÙ¦³¨Ç¦a¤è¥¼¯à¸Ñ¨M:
Question02.zip (13.93 KB)
Q2(A): ¦pªG§Ú¦btextbox1 ¤¤ ¿é¤J 01, §Ú¦b¼u¥X¨ÓªºListbox1 ¤¤¿ï¨ú¤FA010, ªí±¨Ó¬Ý,¦n¹³¤v¸g逹¨ì¤F¥Øªº,¦ý·í§Ú·Q¦A×¥¿®É,Backspace¤@®æ,¦A¥´1®É, ¦]¬°§Ú·Q×¥¿¬°A011®É, ´N¥X²{³ø¿ùªº±¡ªp.
Q2(B): ½Ð°Ý¦bTextbox¤¤. ÀH¤F²{¦bªºTextBox1_Change ¨Æ¥ó¥~( ¤£¬q¬d§ä¬ÛÃö¤§¸ê®Æ¥~) , ¥i§_¦A¥[¤JTextBox1_DblClick ©O? (¥i¥H¼u¥XListbox Item ),¦]¬°§Ú·Q°µ¨ì§Ú"1¼ÓQ2¹Ï¤¤"ªº¥\¯à. |
|