ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] (¤v¸Ñ¨M!)~~¦³Ãö¥H¤U2­Ó¤£©ú¥Õªº°ÝÃD.·Q½Ð±Ð¦U¦ì«ü¾É¤@¤U¤p§Ì!

[µo°Ý] (¤v¸Ñ¨M!)~~¦³Ãö¥H¤U2­Ó¤£©ú¥Õªº°ÝÃD.·Q½Ð±Ð¦U¦ì«ü¾É¤@¤U¤p§Ì!

¥»©«³Ì«á¥Ñ StanleyVic ©ó 2011-8-10 17:41 ½s¿è

1. ¦p¤U¹Ï: ¤p§Ì¼g¤F¤@­Ó¤p¤pªº¾Þ§@¤¶­±:
  ¬°¤°»ò.¨C¦¸§Ú¤@login Userform , ·í¤¤ªº MultiPage (ºt¥Ü¤¤ªº²Ä¤G­¶) ¤£¯à¥¿±`Show¥X¾¤.
   ¨C¦¸³£¬O³o¼Ë.¦ý¥Î¤á­Ì«ö¤F¨ä¥L­¶­±,¦Aªð¦^«ö"¥¦" , "¥¦" ¤S¥i¥H¥¿±`¥X²{.
   123.gif


2. ¦p¤U¹Ï : ½Ð°Ý³o­Ó¥\¯à¥s¤°»ò? ·Qª¾¥Î¤½¦¡°µÁÙ¬OVBA ¼g?
   ¤p§Ì«Ü·Q¾Ç,±æ¦U¦ì¯àµ¹¤©¤p§Ì¤@¥÷¼ËªO,«ü¾É¤@¤U..
  (·í¥Î¤á­n¿é¤J¬O, ´N Double Click 2¦¸, ·í¤¤¥i¥H¿é¤J¤å¦r,¯Á¤Þ·|¦Û°ÊÅã¥Ü)
   234.gif
NeverTry , NeverNo !

´Á±æ¯à±o¨ì¦U¦ìªº«ü¾É..ÁÂÁÂ~..
NeverTry , NeverNo !

TOP

Àµ½Ð¤j¤j­Ì /  ¦U¦P¾Ç­Ìªº«ü¾É...
(¶K¤l¤£¯à¨I¤U¥h~~~ Y-Y" ¨D§U.¨D§U..¦U¦ì)
NeverTry , NeverNo !

TOP

¦^´_ 3# StanleyVic
Q1 :¨Sµ{¦¡½X¦p¦ó­×¥¿
Q2:§A´y­zªº¤£²M·¡

TOP

¦^´_ 4# GBKEE

Á¤j¤jªº´£¥Ü:¦]¬°¤å¥ó¹L¤j¹L30m,¤º®e¦³«Ü¦h¥X¤J¼ÆDATA.¥H¤Î¦U¶µ¥N½X.©Ò¥H¼È®É¤£«K¤W¸ü.
2345.gif


°ÝÃD1. ¨ä¹ê¤@¤Á¦p¹Ï¤¤©ÒÅã¥Ü,§Ú¦b¸ÓUserform1ªº multipage¦@«Ø¥ß¤F5­ÓPage.¦ý§Ú¨S¦³¹ï MultiPage1_Change °µ¹L¥ô¦óªF¦è, ©Ò¥HÀ³¸Ó¤£·|¥X²{¹Ï¤¤ªº±¡ªp,©Ò¥H¤~¥HGIF ®æ¦¡.ºt¥Ü.
¬°¦ó·í§Ú¤@Login, page2 ¥X²{µe­±¤£¯à¨ê¨­ªº±¡ªp, §Ú´¿»{¬°¬O¥i¯à¦Û¤v¦b Page ¤¤«Ø¥ß¤F ListView , ¦ý§Ú page 4 ³£¬O¥ÎListView,©Ò¥H§Ú´£°ÝÃD.
¦AªÌ: ¦pªGª©¥D»{¬°¬O¦b¥N½X¤W¥X²{°ÝÃD.....§Ú...§Ú¦^¥h¸Õ¤@¤U¦A§â¤å¥ó©î¶},ºÉ¶q§â°ÝÃD±a¥X¨Ó.¦A¤W¸ü¨ì¶Qºô¤W..

°ÝÃD2. ³o­Ó..³o­Ó§Ú´NÀYµh¤F,§Ú¬O¦b¤½¥qªº°]°È¨t²Î¤¤¬Ý¨ìªº, §Ú¹ï³o­Ó¥\¯à«Ü·P¿³½ì, §Æ±æ¥i¥H¤Þ¤J¦Û¤vªºVBA¤¤. µL©`,§Ú¤£¤~. ©Ò¥H¦b¦¹½Ð±Ð¦U¦ì.
¹Ï¤¤ªººt¥Ü¥D­n¬O,¦bUserform1. Textbox1¤¤.  ¦p¥Î¹«¼ÐÂI2¤U. ´N·|Åܦ¨¦n¹³ listbox ³o¼Ë. ·í§A¦b textbox¤@Ã䥴¦r, ¤U­±ªºListbox Item  ´N·|¹³¬d§ä¤@¼Ë¶]¥X¨Ó.  (§Ú²q¥Î¤F¡@like *..¤°»òªº¡D¡D¡^¡@

ªí逹¯à¤O¦³­­.. ¦p¦³¤£«K³B.½Ð¦U¦P¾Ç,¤j¤j­Ì¨£½Ì..
NeverTry , NeverNo !

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2011-8-9 19:10 ½s¿è

¦^´_ 5# StanleyVic
Q2: ¸Õ¸Õ¬Ý¬O³o¼Ë¶Ü?
  1. Option Explicit
  2. Dim Ar(), At
  3. Private Sub ListBox1_Click()
  4.     TextBox1 = ListBox1.List(ListBox1.ListIndex)
  5. End Sub
  6. Private Sub TextBox1_Change()
  7.     At = Filter(Ar, TextBox1.Text, True)
  8.     If UBound(At) > -1 Then
  9.         ListBox1.List = At
  10.     Else
  11.         ListBox1.List = Ar
  12.     End If
  13. End Sub
  14. Private Sub UserForm_Initialize()
  15.     Ar = Application.WorksheetFunction.Transpose(Sheet1.Range("A:A").SpecialCells(xlCellTypeConstants))
  16.     'AÄæ¬O¸ê®Æ°Ï(¸ê®Æ°Ï¶·¬O³sÄò½d³ò)
  17. End Sub
½Æ»s¥N½X

TOP

¥»©«³Ì«á¥Ñ 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 :
  1. Private Sub UserForm_Initialize()
  2.     With ListView1
  3.         .Gridlines = True
  4.         .View = lvwReport
  5.         .ColumnHeaders.Add , , "Searching Result ...", 180
  6.     End With
  7. End Sub

  8. Private Sub ToggleButton4_Click()
  9. Dim DPC As Range
  10.     If Userform1.TextBox18.Text <> "" And ToggleButton4 = True Then
  11.         ListView1.ListItems.Clear
  12.         Userform1.ToggleButton5 = False
  13.         Userform1.ToggleButton6 = False
  14.         Userform1.ToggleButton7 = False

  15.          Sheets("Ref").Activate
  16.         For Each DPC In [J6:J3505]
  17.             If DPC Like "*" & TextBox18.Text & "*" Then
  18.                DPC.Offset(0, 2).Value = DPC.Offset(0, 0).Value
  19.                ListView1.ListItems.Add , , DPC.Value
  20.             End If
  21.         Next
  22.       Else
  23.        [L6:L3505] = ""
  24.        TextBox18.Value = ""
  25.        ListView1.ListItems.Clear
  26.     End If  
  27. 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¹Ï¤¤"ªº¥\¯à.
NeverTry , NeverNo !

TOP

¦^´_ 7# StanleyVic
Q1: §ï¬°¦p¦¹¸Õ¸Õ¬Ý
  1. Private Sub MultiPage1_Change()
  2.     If MultiPage1.Value = 1 Then
  3.         With ListView1
  4.             .Gridlines = True
  5.             .View = lvwReport
  6.             .ColumnHeaders.Add , , "Searching Result ...", 180
  7.         End With
  8.     End If
  9. End Sub
½Æ»s¥N½X
Q2:
  1. Private Sub TextBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
  2. If TextBox1.Value <> "" Then
  3.         ListBox1.Visible = True
  4.         At1 = Filter(Ar1, TextBox1.Text, True)
  5.         ListBox1.List = At1
  6.     Else
  7.         ListBox1.Visible = False
  8.     End If
  9. End Sub
½Æ»s¥N½X

TOP

¥»©«³Ì«á¥Ñ StanleyVic ©ó 2011-8-10 15:17 ½s¿è

¦^´_ 8# GBKEE


    ·PÁ¤j¤jªº¤@¸ôªº«ü¾É:  ©M¤@¸ôªº¹Á¸Õ !!! ²×©ó¸Ñ¨M¤F!!!!

Q1 : ¤v¸g¥i¥H¸Ñ¨M¤F¦]Userform1©w¸qListView,¦Ó¤Þ°_ªº¤£¯à¨ê·s°ÝÃD. ¦b§Aªº¤Þ»â¤U. §Ú¥[¦h¤F³o¥y: ".ColumnHeaders.Clear
" , ¦]¬°¨C«ö¤@¤U,Columnheader´N¥Í¦¨¦h¤@¦¸!
  1. Private Sub MultiPage1_Change()

  2.    If MultiPage1.Value = 1 Then
  3.         With ListView1
  4.             .ColumnHeaders.Clear
  5.             .Gridlines = True
  6.             .View = lvwReport
  7.             .ColumnHeaders.Add , , "Searching Result ...", 180
  8.         End With
  9.     End If
  10. End Sub
½Æ»s¥N½X
Q2: ¼È®É¥¼¥Î¤j¤j§Aªº«ü¥Ü,§Ú¥Î¤F²Ä¤G­Ó¤èªk,   ¥D­n¦]¬°§Ú­Ìªº¥N½X¤¤.¤í¤FListBox1.Clear ³o¤@¥y!! ¸Ñ¨M¤F Q2A ©M Q2Bªº¨â­Ó°ÝÃD!
    Q2A : (¿ï¥Î¤FListView«á,¤£¯à§@­×¥¿,§_«hVBA³ø¿ù ) ©M Q2B : ( ÁöµMDbClick,¦]¬°Textbox¤v¬°ªÅ¥Õ,©Ò¥H¤£¹L¼u¥X )
  1. Private Sub TextBox1_Change()
  2.     If TextBox1.Value <> "" Then
  3.         [color=Red]ListBox1.Clear[/color]
  4.         ListBox1.Visible = True
  5.         At1 = Filter(Ar1, TextBox1.Text, True)
  6.         ListBox1.List = At1
  7.     Else
  8.         ListBox1.Visible = False
  9.     End If
  10. End Sub


  11. Private Sub TextBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
  12.     ListBox1.Visible = True
  13.     ListBox1.List = Ar1
  14. End Sub
½Æ»s¥N½X
NeverTry , NeverNo !

TOP

        ÀR«ä¦Û¦b : «Î¼e¤£¦p¤ß¼e¡C
ªð¦^¦Cªí ¤W¤@¥DÃD