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

[µo°Ý] ListBox»P±Æ§Ç¥[Á`°ÝÃD

¥»©«³Ì«á¥Ñ starbox520 ©ó 2016-10-21 13:49 ½s¿è

¦^´_ 29# GBKEE


    ªþÀɪº«ö§Ú ´N¬O§Ú·Q­n°µªº°ÝÃD§ïµ½
    ­ì¥»¬O³]­p¨Ó¶}±ÒlistBox³æ¯Â¦¹¥\¯à¦Ó¤w(¥Ø«eListBoxªº¸ê®ÆÅã¥Ü¬O¨ú¥Î©ó"¤u§@ªí2")
    ²{¦b­n­×¥¿¬°¦pªG¥ýÂI¾÷¥x½s¸¹¦b«ö¦¹«ö¶s¶}±ÒListBox(©Î¬O¦³§ó¦nªº¤èªk...)
    ¯à§_¦Û°Ê¹ïÀ³¨ì¿ï¾Üªº¾÷¥x½s¸¹¥k¤âÃ䪺²Ä¤@±Æ¸ê®Æ
    ¶]¥X¨Óªº¼Ë¤l·|Ãþ¦ü¹³"¤u§@ªí1"¥ª¤W¹Ï¥Ü ¥H¹ïÀ³¦r¦êÅã¥Ü¥Xªº±Æ§Ç

TOP

§Ú¦³¸ÕµÛ¦Û¤v¥h¥Î¯x°}¤è¦¡¼g¤J²M³æ¤è¶ô
   ¥i¥HÀ°§Ú¬Ý¬Ý­þÃä»yªk¦³¿ù»~ªº¶Ü
   Private Sub TrLowData(ByVal strPackage As String, ByVal strLC As String, ByVal strBodysize As String)
    Dim max As Integer
    max = UBound(List)
    Dim gg As Boolean
    Dim LowCustomer As String
    Dim BodySize As String
    Dim Location As String
    Dim DeviceType As String
    Dim Package As String
    Dim Schedule As String
    Dim BK As Long
    Dim LC As String
    Dim TY As String
    Dim VM As Long
    Dim TR As Long
    Dim Total  As Long
            '¥Î¤u§@ªí2¥h°µ±Æ¦C ¤@¦æ¤@¦æŪ
    For k = 2 To 6000
        Customer = Cells(k, "A")
        Package = Cells(k, "B")
        BodySize = Cells(k, "C")
        LC = Cells(k, "D")
        BK = Cells(k, "E")
        VM = Cells(k, "F")
        TR = Cells(k, "G")
        Total = Cells(k, "H")
            If Len(Customer) = 0 Then
                Exit For
            End If
     '¤ñ¹ï¦r¦ê§@±Æ¦C  ¥HPKG.LEADCOUNT.BodySize§@±ø¥ó¿z¿ï
     
     Next
      If (StrComp(List(i).PKG, strPackage, vbTextCompare) = 0) And _
         (StrComp(List(i).LEADCOUNT, strLC, vbTextCompare) = 0) And _
         (StrComp(List(i).BodySize, strBodysize, vbTextCompare) = 0) Then
      For i = 0 To max
     '§âµ²ªG©ñ¥hLISTBOX ¥u¨q¥X¤­µ§
      lstSelector.ColumnCount = 9
         For i = 1 To 5
         lstSelector.Additm
        Next i
       '³o¸Ì­nkeep³o¤­­Ó¸ê®Æ¦ý¬O§Ú¤£¾å±o­n«ç»ò¥Î»yªk¥h¼g...
      
      '¦b¨q¥X¤­µ§¥HLEADCOUNT.PKG §@±Æ¦C
       If (StrComp(List(i).LEADCOUNT, strLC, vbTextCompare) = 0) And _
          (StrComp(List(i).PKG, strPackage, vbTextCompare) = 0) And _
           For i = 0 To max
            lstSelector.ColumnCount = 9
         For i = 1 To 5
         lstSelector.Additm
        Next i

End Sub

TR0924.rar (546.35 KB)

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2016-10-24 05:41 ½s¿è

¦^´_ 31# starbox520

¦Û°Ê¹ïÀ³¨ì¿ï¾Üªº¾÷¥x½s¸¹¥k¤âÃ䪺²Ä¤@±Æ¸ê®Æ
©Ò»¡: ¬O¹ïÀ³¨ì¦p¹Ï¶Ü




§A´Á±æ±o¨ì"¤u§@ªí1"¥ª¤W¹Ï¥Ü ¥H¹ïÀ³¦r¦êÅã¥Ü¥Xªº±Æ§Ç

¦p¹Ï¤u§@ªí2»P¤u§@ªí1 ªºÄæ¦ì¤£ºÉ¬Û¦P.
     °ÝÃD¬O¤u§@ªí2¨S¦³Äæ¦ìªº¸ê®Æ,¦p¦ó¦b¤u§@ªí1¨q¥X¨Ó,
   ¤u§@ªí1¤Wªº5µ§¸ê®Æ,¬Ý¤£¥X¦p¦ó¦b¤u§@ªí2¨ú¥X .
   ¤u§@ªí1  Customergroup  ªº5µ§¸ê®Æ,
    AVAGO  SYNAPTICS  MAXIM  MELLANOX  PMC-SIERRA
    ÃöÁp©Ê¬Ý¤£¥X¨Ó

   
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 33# GBKEE


    ¦^ª©¤j
    ¬O¹ïÀ³¨ì¦¹¦r¦ê¨S¿ù
    ¬O¥H¤u§@ªí2¸ê®Æ¥h¹ïÀ³¦r¦êªº"Package" »P "BodySize"ªº¤º®e§@±Æ¦C(¼Æ¶q¥Ñ¤j­P¤p)§e²{¦bListBox¤W
    ¤u§@ªí1¬°²z·Q¹Ï   À³¬°
    ¬O§Úªí¹F¤£²M©êºp...
    ­Y¥H²Ä¤@Äæ¨Ó»¡  ·|¹ïÀ³¨ìªº¿z¿ï±ø¥ó´N¬OBGA  ¦A¨Ó¬O17.3*7  ¿z§¹«á¦A±Æ¦C¼Æ¶q¤j¤p(¥H¤u§@ªí2¥h°µ¿z¿ï)
        ¥H²Ä2Äd¨Ó»¡  ·|¹ïÀ³¨ìªº¿z¿ï±ø¥ó´N¬OTQFP ¦A¨Ó¬O10*10 ¿z§¹«á¦A±Æ¦C¼Æ¶q¤j¤p
   
     °é°_³¡¤À¬O   ¤W­±§¹¦¨µ²ªG«á§e²{¦bListBox¤W   ÂI¿ï¨ä¤¤¬Y¶µ  ·|ª½±µ§â ³o4µ§¸ê®Æª½±µ¶K¤W  (¨C¦¸¥u¶K¤@¦¸)
     ¦ý¦]¬°¨C­Ó¾÷¥x½s¸¹²Ä¤@Äæ¸ê®Æ³£¤£¦P  ©Ò¥H¤~·Q¹L­n¥H¥ýÂI¿ïÀx¦s®æ¦A¥h´M§ä¦r¦êªº¤èªk¥h°µ±Æ¦C...(§Úªº·Qªk)
     ­«·sªþ¤W¾ã²z«áªºÀÉ®×....¤£¦n·N«äÅý±z²V²c¤F
      0925.zip (551.96 KB)

TOP

¦^´_ 33# GBKEE

    ¤£¦n·N«äª©¤j
    ¦¹ª©¸û©ú½T   
    0926TR.rar (544.82 KB)

TOP

¦^´_ 33# GBKEE


    ¦^ª©¤j
    ³o¨Ç°µªk³£¬O§Ú¥ÎC#©Ò¾ÇªºÆ[©À¥h§Ë±o ©Ò¥H¦b¬Û®e©Ê¤U«Ü¦h°ÝÃD©Ò¥H§Ú¤~¶V¼g¶V±Y¼ì=  ="
    §Ú³Ì²×¥Ø¼Ð¬O¥Î"¤u§@ªí2"ªº¸ê®Æ¹ï¨ì"TR²£¥X"ªº¾÷¥xÃä½X¤W¨C²Ä¤@¦C¸ê®Æ¡A¥h°µ"Package ""Bodysize"¼Æ¶q¥Ñ¤j¦Ü¤p¡A¥i¥H¨q¥X¦b²M³æ¤è¶ô¤W
      
     ÂI¿ï¨ä¤@¤º®e¥i¥H¶K¨ì¿z¿ï±ø¥óªº¤U¤@±Æ¡A
      
     Åã¥Ü¦bListBox¤W·|¦³8µ§¸ê®Æ¶K¤W¥u»Ý¨ä¤¤¥|µ§
      ps:¦³·Q¹L«Ü¦h¤èªk¥h°µ¡A ¥i¬O³£¥d¨ì¨C¤@­Ó¾÷¥x½s¸¹¹ïÀ³ªº²Ä¤@±Æ¿z¿ïªF¦è¥i¯à¤£¦P¡A©Ò¥H¤~¥Î°}¦C¥h¸Õ¸Õ¬Ý
          ¦ýª¦¤å¤¤¤S¦³¬Ý¨ìª«¥óÃþ§O¼Ò²Õ¦n¹³¯à¹ê²{¡A¥u¬O¦n¹³¦ü¥GÅܦ¨­n¨C­Ó¾÷¥x½s¸¹³£³]¸m«ö¶s
           ª©¤j¦³¸û¦nªº·Qªk©Î§@ªk¶Ü~"~

TOP

¦^´_ 36# starbox520

¬Ý¨ì³Ì«á³o¹Ï¤ù,¤~©úÁA§A¦b»¡¤°»ò.

¸Õ¸Õ¬Ý «ö§Úªºµ{¦¡½X
  1. Option Explicit
  2. Sub Ex()
  3.     Dim Rng As Range
  4.     Set Rng = Sheets("TR±Æ¾÷&²£¥X").Range("E4")
  5.     Application.ScreenUpdating = False
  6.     Do While Rng <> ""
  7.         Ex_AutoFilter Rng              '©I¥s µ{¦¡
  8.         Set Rng = Rng.Offset(5)
  9.     Loop
  10.     Application.ScreenUpdating = True
  11. End Sub
  12. Sub Ex_AutoFilter(Rng As Range)
  13.     Dim xRng(1 To 2) As Range
  14.     With Sheets("¤u§@ªí2")
  15.         Set xRng(1) = .Range("a1").CurrentRegion
  16.         xRng(1).AutoFilter
  17.         Set xRng(2) = Cells(1, Columns.Count - xRng(1).Columns.Count)
  18.     End With
  19.      With xRng(1)
  20.         '**'¦Û°Ê¿z¿ï  **
  21.         .AutoFilter Field:=1, Criteria1:=Rng             '²Ä¤@­ÓÄæ¦ì , ¿z¿ï·Ç«h=Rng
  22.         .AutoFilter Field:=2, Criteria1:=Rng(1, 2)    '²Ä¤G­ÓÄæ¦ì , ¿z¿ï·Ç«h=Rng(1, 2)
  23.         '**'¦Û°Ê¿z¿ï  **
  24.         .Copy xRng(2)
  25.        End With
  26.        Rng(2).Resize(4, 4) = xRng(2).CurrentRegion.Range("A2:D5").Value
  27. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 37# GBKEE


    ¦^ª©¤j¿zªº½T¹ê¬O§Ú­nªºµ²ªG¡A
    ¬O§Æ±æ³z¹L¤H¤u¥hLISTBOXÂI¿ïªº¤èªk¥h¶K¦b²Ä2®æ
    ( ·|¦³ customer   package  bodysize  lc  bk  vm  tr   ¼Æ¶q   ) <-8 µ§¸ê®Æ
     ¦]¬°¬O§Ú¤H¤u¥h¿ï¥X¨Óªº©Ò¥H§Ú¥u¦³¨q¤j·§¤­µ§
   
     ¦]¬°¨C¦¸¨Ï¥Î®É ¨C­Ó¾÷¥x½s¸¹  ¥u·|¨ú¨ä¤¤¤@¶µ¶K¤W¥h¦Ó¤w¹³§Ú³o¼Ë
      10.png
     ¦]¬°¨Ï¥Î®É¤£¤@©w·|­n²Ä¤@µ§¸ê®Æ¡A­n¥H¤H¤u¥h§PÂ_  lc  bk  vm  tr   ªº¼Æ¶q   
     ¦A¥H¤H¤u¨M©w­nÂI¿ï¤@¶µ¶K¤W¥h
     ©Ò¥H§Ú¤~·|¦³«áªÌ©Ò»¡¬O§_­n«Ü¦h­Ó«ö¶sªº°ÝÃDQQ
     ¤SÅýª©¤j»~·|§Ú¤@ÂI·N«ä¤F...

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2016-10-25 10:28 ½s¿è

¦^´_ 38# starbox520
¤£¥Î«Ü¦h­Ó«ö¶s¤]¤£­n¥Î«ö¶s
TR±Æ¾÷&²£¥X¤W,·Æ¹«²¾¨ìEÄæ¤Wªº©Ò«ü©wªºCustomer,¨q¥Xªí³æ

TR±Æ¾÷&²£¥X¼Ò²Õªºµ{¦¡½X
  1. Public Sh_Rng As Range, Sh_Ar
  2. Private Sub Worksheet_SelectionChange(ByVal Target As Range)
  3.     If IsError(Target(1)) Then Unload frmSelector:         Exit Sub
  4.     If (Target(1).Row + 1) Mod 5 = 0 And Target(1) <> "" And Target(1).Column = 5 Then
  5.         Set Sh_Rng = Cells(Target(1).Row, "E")
  6.         Ex_Customer_Package
  7.         If IsEmpty(Sh_Ar) Then MsgBox Sh_Rng & "-" & Sh_Rng(1, 2) & vbLf & "§ä¤£¨ì": Exit Sub
  8.         Unload frmSelector
  9.         frmSelector.Show False
  10.     Else
  11.         Unload frmSelector
  12.     End If
  13. End Sub
  14. Private Sub Ex_Customer_Package()
  15.     Dim  i As Integer, ii As Integer, Ar
  16.     Sh_Ar = Ar:    i = 2
  17.     With Sheets("¤u§@ªí2")
  18.         Do While .Cells(i, 1) <> ""
  19.             If .Cells(i, 1) = Sh_Rng And .Cells(i, 2) = Sh_Rng(1, 2) Then
  20.             If IsEmpty(Ar) Then ReDim Ar(1 To 8, 1 To 1) Else ReDim Preserve Ar(1 To 8, 1 To UBound(Ar, 2) + 1)
  21.                 For ii = 1 To 8
  22.                 Ar(ii, UBound(Ar, 2)) = .Cells(i, ii).Text
  23.                 Next
  24.             End If
  25.             i = i + 1
  26.         Loop
  27.     End With
  28.     If IsEmpty(Ar) Then Exit Sub
  29.     Sh_Ar = Application.Transpose(Ar)
  30. End Sub
½Æ»s¥N½X
frmSelectorªí³æ¼Òªýªºµ{¦¡½X
  1. Option Explicit
  2. Private Sub UserForm_Initialize()
  3.     StartupPosition = 0
  4.     Top = 0
  5.     Left = Windows(1).Width - Width
  6.     lstSelector_³]©w
  7. End Sub
  8. Private Sub lstSelector_³]©w()
  9.     With lstSelector
  10.         .ColumnCount = 8
  11.         .MultiSelect = 1            ' MultiSelect ÄÝ©Ê  «ü©wª«¥ó¬O§_±µ¨ü¦h­«¿ï¨ú¡C
  12.        If Not IsEmpty(Sheets("TR±Æ¾÷&²£¥X").Sh_Ar) Then .List = Sheets("TR±Æ¾÷&²£¥X").Sh_Ar
  13.     End With
  14. End Sub
  15. Private Sub CommandButton1_Click()
  16.     Dim AA, i As Integer, ii As Integer
  17.     With lstSelector
  18.         For i = 0 To .ListCount - 1
  19.             If .Selected(i) Then
  20.                 If IsEmpty(AA) Then ReDim AA(1 To 4, 1 To 1) Else ReDim Preserve AA(1 To 4, 1 To UBound(AA, 2) + 1)
  21.                 For ii = 1 To 4
  22.                     AA(ii, UBound(AA, 2)) = .List(i, ii - 1)
  23.                 Next
  24.             End If
  25.         Next
  26.     End With
  27.     If IsEmpty(AA) Then
  28.         MsgBox "§A¨S¦³¿ï¨ú¸ê®Æ"
  29.     ElseIf UBound(AA, 2) > 4 Then
  30.         MsgBox "§A¿ï¨ú ¶W¹L 4 µ§ ¸ê®Æ"
  31.     Else
  32.         If MsgBox("¦@ ¿ï¨ú " & UBound(AA, 2) & " µ§¸ê®Æ" & vbLf & "½T©w¿é¤J", vbYesNo) = vbYes Then
  33.             With Sheets("TR±Æ¾÷&²£¥X").Sh_Rng.Offset(1)
  34.                 .Resize(4, 4) = ""
  35.                 .Resize(UBound(AA, 2), UBound(AA)) = Application.Transpose(AA)
  36.             End With
  37.         End If
  38.     End If
  39. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 39# GBKEE


   
    ª©¤j¥i¥H©ñÀɮפW¨Ó¶Ü
    §Ú«ç»ò¿é¤Jµ{¦¡½X¶i¥h³£¨S¦³¤ÏÀ³
     «öF5¤@ª½¶]¿ù»~­C= = "

TOP

        ÀR«ä¦Û¦b : ¡i¬°µ½Ävª§¡j¤H¥Í­n¬°µ½Ävª§¡A¤À¬í¥²ª§¡C
ªð¦^¦Cªí ¤W¤@¥DÃD