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

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

¦^´_ 69# GBKEE
  1. Public Sh_Rng As Range, Sh_Ar
  2. Private Sub Worksheet_SelectionChange(ByVal Target As Range)
  3.    
  4.     If IsError(Target(1)) Then Unload frmSelector:         Exit Sub
  5.     If (Target(1).Row + 1) Mod 5 = 0 And Target(1) <> "" And Target(1).Column = 6 Then
  6.         
  7.         Set Sh_Rng = Cells(Target(1).Row, "E")
  8.         Ex_Customer_Package
  9.         
  10.         If IsEmpty(Sh_Ar) Then MsgBox Sh_Rng & "-" & Sh_Rng(1, 2) & vbLf & "§ä¤£¨ì": Exit Sub
  11.         Unload frmSelector
  12.         frmSelector.Show False
  13.     Else
  14.         Unload frmSelector
  15.     End If
  16. End Sub
  17. Private Sub Ex_Customer_Package()

  18.     Dim i As Integer, ii As Integer, Ar
  19.     Sh_Ar = Ar:    i = 2
  20.    
  21.     With Sheets("¤u§@ªí2")
  22.         Do While .Cells(i, 1) <> ""
  23.            ' If .Cells(i, 1) = Sh_Rng And .Cells(i, 2) = Sh_Rng(1, 2) Then
  24.             If .Cells(i, 2) = Sh_Rng And .Cells(i, 3) = Sh_Rng(1, 2) Then
  25.             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)
  26.                 For ii = 1 To 8
  27.                 Ar(ii, UBound(Ar, 2)) = .Cells(i, ii).Text
  28.                 Next
  29.             End If
  30.             i = i + 1
  31.         
  32.         Loop
  33.     End With
  34.    
  35.     If IsEmpty(Ar) Then Exit Sub
  36.     Sh_Ar = Application.Transpose(Ar)
  37.    
  38. End Sub
½Æ»s¥N½X
¦^ª©¤j¦r¦ê¦n¹³³s¦b¤@°_¤F  




TR 0007.rar (537.65 KB)

TOP

¦^´_ 68# starbox520
  1.   If .Cells(i, 2) = Sh_Rng And .Cells(i, 3) = Sh_Rng(1, 2) Then
½Æ»s¥N½X
§ïTarget(1).Column = 5 ¬° Target(1).Column = 6
  1. Private Sub Worksheet_SelectionChange(ByVal Target As Range)
  2.     If IsError(Target(1)) Then Unload frmSelector:         Exit Sub
  3.     If (Target(1).Row + 1) Mod 5 = 0 And Target(1) <> "" And Target(1).Column = 5 Then
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 65# GBKEE
  1. Private Sub Ex_Customer_Package()


  2.     Dim i As Integer, ii As Integer, Ar
  3.     Sh_Ar = Ar:    i = 2
  4.     With Sheets("¤u§@ªí2")
  5.         Do While .Cells(i, 1) <> ""
  6.             If .Cells(i, 2) = Sh_Rng And .Cells(i, 3) = Sh_Rng(1, 2) Then
  7.             
  8.             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)
  9.                 For ii = 1 To 8
  10.                 Ar(ii, UBound(Ar, 2)) = .Cells(i, ii).Text
  11.                 Next
  12.             End If
  13.             i = i + 1
  14.         Loop
  15.     End With
  16.     If IsEmpty(Ar) Then Exit Sub
  17.     Sh_Ar = Application.Transpose(Ar)
  18. End Sub
½Æ»s¥N½X
³o¬q¦pªG§ï¦¨¥HPackage    BodySize  ­n«ç»ò­×§ï©O

¥Ø«e¤j¤jÀ³¸Ó¬O¥ÎCustomer    Package   ¥h¿z

TOP

¦^´_ 65# GBKEE


     §ÚÁÙ¦b¬ã¨s§A­ÌªºÅÞ¿è¸ò­þÃä¬O¦b°µ¤°»òªº
     ¥Î¤¤Â_ÂI¬ã¨s¤¤...
     ÁÂÁª©¤j´£¿ôXD

TOP

¦^´_ 64# c_c_lai


    ÁÂÁÂC¤j
    ÁÙ¦b¬ã¨s§A­ÌªºÅÞ¿è~"~

TOP

¦^´_ 62# starbox520
55# ¤W§Ú¦³»¡
49# ¤WPS:TR±Æ¾÷&²£¥X¼Ò²Õ ¦³­×¥¿,½Ð­×¥¿§AªºÀÉ®×
  1. '  Ar(UBound(Ar)) = .Cells(i, 1).Resize(, 4) ­×§ï
  2. Ar(UBound(Ar)) = .Cells(i, 1).Resize(, 8)
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 62# starbox520

TOP

¥»©«³Ì«á¥Ñ c_c_lai ©ó 2016-10-29 16:39 ½s¿è

¦^´_ 60# starbox520
  1. Private Sub lstSelector_³]©w()
  2.     Dim i As Integer, Arr()
  3.    
  4.     With lstSelector             '  ** frmSelector ¤¤ªº ²Ä¤@­Ó ListBox ±±¨î¶µ
  5.         .Clear
  6.         i = 0
  7.         '**¤Ï¦Êªº³¡¤À¥i¥H¥u¯à¤Ï¥Õ¤@µ§ ¡A¤£­n³o»ò¦hµ§¶Ü
  8.         ' **¨ú®ø     .MultiSelect = 1            *** MultiSelect ÄÝ©Ê  «ü©wª«¥ó¬O§_±µ¨ü¦h­«¿ï¨ú¡C
  9.         Arr = Sheets("TR±Æ¾÷&²£¥X").Sh_Ar
  10.         If Not IsEmpty(Arr) Then
  11.             On Error Resume Next
  12.             i = UBound(Arr, 2)
  13.             If i > 0 Then
  14.                 .List = Arr
  15.             Else
  16.                 .AddItem
  17.                 For i = 0 To UBound(Arr)
  18.                     .List(0, i) = Arr(i + 1)
  19.                 Next i
  20.             End If
  21.         End If
  22.     End With
  23.     With ListBox1                '  ** frmSelector ¤¤ªº ²Ä¤G­Ó ListBox ±±¨î¶µ
  24.           .ColumnCount = 9
  25.           .ColumnWidths = "90,45,130,60,35,50,90,50,70"
  26.    End With
  27. End Sub
½Æ»s¥N½X

TOP

¦^´_ 59# c_c_lai


    ªþ¤WÀÉ®×µ¹±z
    ²Ä¤@­Ólistbox¤]¦³¦¹°ÝÃD
   

TR 0006.rar (538.2 KB)

TOP

¦^´_ 58# GBKEE


    ÁÂÁª©¤jµ¹§Ú³o»ò¦h¸ê°T...
    Åý§Úª¾¹D±q¤¤¸Ó­×§ï¤°»ò
    ¯uªº«ÜÁÂÁ§A><""

TOP

        ÀR«ä¦Û¦b : Ä@­n¤j¡B§Ó­n°í¡B®ð­n¬X¡B¤ß­n²Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD