Board logo

¼ÐÃD: [µo°Ý] °õ¦æ¶¥¬q¿ù»~'380' [¥´¦L¥»­¶]

§@ªÌ: wang077    ®É¶¡: 2021-7-27 15:42     ¼ÐÃD: °õ¦æ¶¥¬q¿ù»~'380'

¦U¦ì¤j¯«¡A§Ú¦b°µ¤@­Ó¬d¸ß¨t²Î
·í§Ú¿ï¾Üsheet2µM«á¥Îcombobox2¿z¿ï§¹«á
·Q­nÅý¬Y´X­ÓÄæ¦ìª½±µ¦blistbox¤WÅã¥Ü¡A©Ò¥H¦³¤F²©ö¬d¬Ýªº«ö¶s
¦ý¬O§ì¨ìAJÄæ®É¡A«o¤@ª½Åã¥Ü[°õ¦æ¶¥¬q¿ù»~'380']
½Ð°Ý¦³­þùؼg¿ù¶Ü?
[attach]33769[/attach]
§@ªÌ: wang077    ®É¶¡: 2021-7-29 10:04

¦^´_ 1# wang077
¦³¤j¯«À°À°¦£¶Ü
ÁÙ¬O¬O§Ú¸ÑÄÀªº¤£²M·¡?
§Ú°µ¤F¤@­Ó¬d¸ß¨t²Î¦buesrform1
¿ï§¹¯Z§O«á«ö½T©w
µM«á¿ï¾÷ºØ
¿ï§¹¾÷ºØ«á«ö²©ö¬d¬Ý
°ÝÃD´N¬O³Ì«áªº¼Æ­ÈµLªkÅã¥Ü¦blistbox¤W
§@ªÌ: singo1232001    ®É¶¡: 2021-7-29 10:45

¥»©«³Ì«á¥Ñ singo1232001 ©ó 2021-7-29 10:47 ½s¿è

¦^´_ 2# wang077
§@ªÌ: wang077    ®É¶¡: 2021-7-29 11:40

¦^´_ 3# singo1232001
¤j¤j¡A½Ð°Ý§Ú¨º¼Ë¼g¬°¦ó§ì¨ú¤£¨ì?
¥t¥~¦pªG§ï¦¨³o¼Ë¡A§Ú¦b²©ö¬d¸ßªº®É­Ô¡A¦³¿ìªk¥u§ì¨ú¨ì¤J®w¡B¨}«~¡B¨}²v³o¤T¦æªº¸ê®Æ¶Ü
µM«á«e­±A¡BBÄæ¦b²©ö¬d¸ß®É¤£­n­«½Æ
[attach]33781[/attach]
§@ªÌ: singo1232001    ®É¶¡: 2021-7-29 12:46

¥»©«³Ì«á¥Ñ singo1232001 ©ó 2021-7-29 13:00 ½s¿è

¦^´_ 4# wang077

http://forum.twbts.com/thread-23251-1-2.html
¤§«eªº³W«h ¥D­n§Ú¾ã²z¤F¨âºØ¶×¤J¤è¦¡
³o¦¸§Aªº°ÝÃD ­è¦n¦b§Ú¨S¼g¨ìªº½d³ò¥~ ·í®É¤]¨S°ÝÃD´N¨Sªá®É¶¡²`¤JºN¯Á

¥Ø«e§A©Ò¨Ï¥Îªº¬OÄÝ©óadditemªº"°}¦C¤@¦¸¶×¤J"¤è¦¡
(ÁöµM¨S¥X²{additem)
¦ýª½±µ¥Î°}¦C¶×¤J ¤]ºâ¦¹Ãþ

­ì¦]¦b©ó­Ó§O additem µLªk¶W¹L10Äæ¦ì
¥u¯à¾a°}¦C¶×¤J ¤~¯à¶W¹L10Äæ¦ì

³oºØÃä¿z¿ï¤S¿z¿ïªº§e²{¤è¦¡ ¨ä¹ê­n¦n¦n¦Ò¼{¦³µL¨ä¥²­n
¦¹¤è¦¡«á´Á¤j¤è¦V·|«D±`½ÆÂø

«Øij¥Î¥H¤U¤TºØ¤è¦¡
1.§ï¥Î²Ä¤@ºØ±ÀÂ˪º¤è¦¡ ¥Î·s¼W¼È¦sªí·í§@¿z¿ï°Ï
2.¤£­n¦b¤u§@ªí³B²z¿z¿ï°ÝÃD ¥u­n¥Î¤Wuserform1¿z¿ï
3.´N¥u¥Î¤u§@ªí³B²z¿z¿ï°ÝÃD ¤£­n¥Î¤W userform1
§@ªÌ: samwang    ®É¶¡: 2021-7-29 12:49

¥»©«³Ì«á¥Ñ samwang ©ó 2021-7-29 13:04 ½s¿è

¦^´_ 1# wang077

¬O³o¼Ë¶Ü? ½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Private Sub ComboBox2_Change()
Range("$A$2:$AJ$65536").AutoFilter Field:=1, Criteria1:=ComboBox2.Text
End Sub

Private Sub CommandButton3_Click()
Dim Arr, Ar(), i&, j&
b = ComboBox1.Text
Sheets(b).Select
If Me.ComboBox2.Text <> "" And Me.ComboBox3.Text = "" Then
    Arr = Sheets(b).AutoFilter.Range.Offset(1).SpecialCells(xlCellTypeVisible)
    ReDim Ar(1 To UBound(Arr) + 1, 1 To UBound(Arr, 2))
    For j = 1 To UBound(Arr, 2)
        For i = 1 To UBound(Arr)
            If Arr(i, j) <> "" Then
            If j <> j1 Then j1 = j: n = n + 1
            If Ar(1, n) = "" Then Ar(1, n) = Cells(2, j)
            Ar(i + 1, n) = Arr(i, j)
            End If
        Next
    Next
    With Me.ListBox1
      .List = Ar
      .ColumnCount = n
    End With
End If
Sheets(b).Select
End Sub
§@ªÌ: wang077    ®É¶¡: 2021-7-29 13:49

¦^´_ 5# singo1232001
¦pªG¬O§â¿z¿ïªºµ²ªG½Æ»s¨ì·sªº¤u§@ªí©O?
³o¼Ë·|¤ñ¸û¦n³B²z¶Ü?
¤j¤j¡A§Ú¥Î§AªºÀɮפU¥h´ú¸Õ¡Alistbox¤W¨}«~ªº¼Æ­ÈÅã¥Ü¦n¹³¿ù»~¤F
¦n¹³¤]·|§ì¨ì³ø¼o¨º¦æ
§@ªÌ: wang077    ®É¶¡: 2021-7-29 13:55

¦^´_ 6# samwang
´ú¸Õ¹L¤F¡A¨S°ÝÃD
¦pªGlistbox¥u­nÅã¥ÜA¡BB¡BC¡BD¡BAJÄæ¡A¥BA¡BB¡BCÄ椣­«½ÆÅã¥Ü©O?
ÁÙ¦³AJÄ檺¨}²v¡Alistbox¤W¦³¿ìªkÅã¥Üxx.x%¶Ü
[attach]33784[/attach]
§@ªÌ: Andy2483    ®É¶¡: 2021-7-29 14:04

¦^´_ 1# wang077


    ¸gÅç¤À¨É:¸ê®Æ§ï¬°ª½¦¡ªº¦n³B,¥H¼Ó¥D½d¨Ò¬°¨Ò
1.¤é´Á¥i¥H«ùÄòÂX¥R
2.Äæ¦ì¥i¥H§½³¡ÂX¥R
3.¥i¥H­pºâ¦hºØ¨}²v
  3.1.­Ó§O¨}²v
  3.2.¾÷¥x¦X­p¨}²v
  3.3.®Æ¸¹¦X­p¨}²v
  3.4.¤é´Á¦X­p¨}²v
  3.5.¥þ³¡²£«~¨}²v
  3.6.¨ä¥L·Q­n­pºâªº¨}²v
4.®e©ö¬d¸ß¾ú¥v¸ê®Æ

¥H¤W°Ñ¦Ò!
§@ªÌ: wang077    ®É¶¡: 2021-7-29 14:25

¦^´_ 9# Andy2483
³o¤]¤Ó±j¤j¡A­n²z¸Ñµ{¦¡½Xµê­n¤@ÂI®É¶¡¤F
¤]ÁÂÁ¤j¤j´£¨Ñ¤èªk°Ñ¦Ò
§@ªÌ: samwang    ®É¶¡: 2021-7-29 15:08

¥»©«³Ì«á¥Ñ samwang ©ó 2021-7-29 15:12 ½s¿è

¦^´_ 8# wang077

½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ

Private Sub CommandButton3_Click()
Dim Arr, Ar(), xD, i&, j&
Set xD = CreateObject("Scripting.Dictionary")
b = ComboBox1.Text
Sheets(b).Select
If Me.ComboBox2.Text <> "" And Me.ComboBox3.Text = "" Then
    Arr = Sheets(b).AutoFilter.Range.Offset(1).SpecialCells(xlCellTypeVisible)
    ReDim Ar(1 To UBound(Arr) + 1, 1 To UBound(Arr, 2))
    For j = 1 To UBound(Arr, 2)
        If j > 4 And j < 36 Then GoTo 99
        For i = 1 To UBound(Arr)
            If Arr(i, j) <> "" Then
                If xD(Arr(i, j)) <> 1 Then
                    xD(Arr(i, j)) = 1
                    If j <> j1 Then j1 = j: n = n + 1
                    If Ar(1, n) = "" Then Ar(1, n) = Cells(2, j)
                    If j = 36 And i = UBound(Arr) Then
                        Ar(i + 1, n) = Format(Arr(i, j), "0%")
                    Else
                        Ar(i + 1, n) = Arr(i, j)
                    End If
                End If
            End If
        Next
99: Next
    With Me.ListBox1
      .List = Ar
      .ColumnCount = n
    End With
End If
Sheets(b).Select
End Sub
§@ªÌ: singo1232001    ®É¶¡: 2021-7-29 15:32

¥»©«³Ì«á¥Ñ singo1232001 ©ó 2021-7-29 15:34 ½s¿è

¦^´_ 7# wang077


­Y·Q§ä¸ê®Æ¬[ºcªº¾Ç²ß±Ð§÷¬ÛÃö
½Ð¤Wºô¬d¸ß "¸ê®Æ®w¥¿³W¤Æ" "¸ê®Æ®w­S¦¡" ©ÎªÌ"¸ê®Æ®w¬[ºc" »P "ÃöÁp¦¡¸ê®Æ®w"
§@ªÌ: wang077    ®É¶¡: 2021-7-29 16:30

¦^´_ 12# singo1232001
«D±`·PÁ¤j¤j
§Ú·|¥h¬ã¨s¬Ý¬Ýªº¡I
§@ªÌ: wang077    ®É¶¡: 2021-7-29 16:32

¥»©«³Ì«á¥Ñ wang077 ©ó 2021-7-29 16:35 ½s¿è

¦^´_ 11# samwang
¤j¤j¡A¦pªG§ÚDÄæ¥u­n¤J®w¡B¨}«~¡B¨}²v©O¡A¥BDÄæ¥i­«½ÆÅã¥Ü
§@ªÌ: samwang    ®É¶¡: 2021-7-29 18:33

¦^´_ 14# wang077

½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ

Private Sub CommandButton3_Click()
Dim Arr, Ar(), xD, i&, j&
Set xD = CreateObject("Scripting.Dictionary")
b = ComboBox1.Text
Sheets(b).Select
If Me.ComboBox2.Text <> "" And Me.ComboBox3.Text = "" Then
    Arr = Sheets(b).AutoFilter.Range.Offset(1).SpecialCells(xlCellTypeVisible)
    ReDim Ar(1 To UBound(Arr) + 1, 1 To UBound(Arr, 2))
    For j = 1 To UBound(Arr, 2)
        If j > 4 And j < 36 Then GoTo 99
        For i = 1 To UBound(Arr)
            If j > 3 Then
                If Arr(i, j) = "¤£¨}" Then i1 = i: GoTo 98
                If Arr(i, j) = "³ø¼o" Then i2 = i: GoTo 98
                If i1 = i Or i2 = i Then GoTo 98
            End If
            If Arr(i, j) <> "" Then
                If xD(Arr(i, j)) <> 1 Then
                   If j < 35 Then xD(Arr(i, j)) = 1
                    If j <> j1 Then j1 = j: n = n + 1: m = 2
                    Ar(1, n) = Cells(2, j)
                    If j = 36 And i = UBound(Arr) Then
                        Ar(m, n) = Format(Arr(i, j), "0%")
                    Else
                        Ar(m, n) = Arr(i, j): m = m + 1
                    End If
                End If
            End If
98:   Next
99: Next
    With Me.ListBox1
       .ColumnWidths = "30,30,30,40,40"
      .List = Ar
      .ColumnCount = n
    End With
End If
Sheets(b).Select
End Sub
§@ªÌ: wang077    ®É¶¡: 2021-7-30 08:46

¦^´_ 15# samwang
¤j¤j¡A§Ú¦³±HÀɮרì§Aªºgmail
¥i¥H³Â·Ð§A¬Ý¤@¤U¶Ü¡AÁÂÁÂ
§@ªÌ: samwang    ®É¶¡: 2021-7-30 11:33

¦^´_ 16# wang077

½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ

Private Sub CommandButton3_Click()
Dim Arr, Ar(), xD, i&, j&
Set xD = CreateObject("Scripting.Dictionary")
b = ComboBox1.Text
Sheets(b).Select
If Me.ComboBox2.Text <> "" And Me.ComboBox3.Text = "" Then
    Arr = Sheets(b).AutoFilter.Range.Offset(1).SpecialCells(xlCellTypeVisible)
    ReDim Ar(1 To UBound(Arr), 1 To 4): m = 1
    For i = 1 To UBound(Arr)
        T = Arr(i, 1) & Arr(i, 2) & Arr(i, 4)
        If InStr(T, "´£À˼Æ") Or InStr(T, "¨}«~¼Æ") Or InStr(T, "¨}²v") Then
            If xD(T & "/3") <> 1 Then
                xD(T & "/3") = 1: m = m + 1
                If Ar(1, 1) = "" Then '²Ä1¦C
                    Ar(1, 1) = Cells(2, 1): Ar(1, 2) = Cells(2, 2)
                    Ar(1, 3) = Cells(2, 4): Ar(1, 4) = Cells(2, 36)
                End If
                If xD(Arr(i, 1) & "/1") <> 1 Then xD(Arr(i, 1) & "/1") = 1: Ar(m, 1) = Arr(i, 1)
                If xD(Arr(i, 2) & "/2") <> 1 Then xD(Arr(i, 2) & "/2") = 1: Ar(m, 2) = Arr(i, 2)
                Ar(m, 3) = Arr(i, 4)
                If InStr(T, "¨}²v") Then Ar(m, 4) = Format(Arr(i, 36), "0%") Else Ar(m, 4) = Arr(i, 36)
            End If
        End If
    Next
   
    With Me.ListBox1
      .ColumnWidths = "40,50,70,40"
      .List = Ar
      .ColumnCount = m
    End With
End If
Sheets(b).Select
End Sub
§@ªÌ: samwang    ®É¶¡: 2021-7-30 12:22

¦^´_ 16# wang077


¤£¦n·N«ä¡A§ó·s17¼Óµ{¦¡¡A±N²Ä1¦C²¾¨ì°j°é¥~¡AÁÂÁÂ
   
Private Sub CommandButton3_Click()
Dim Arr, Ar(), xD, i&, j&
Set xD = CreateObject("Scripting.Dictionary")
b = ComboBox1.Text
Sheets(b).Select
If Me.ComboBox2.Text <> "" And Me.ComboBox3.Text = "" Then
    Arr = Sheets(b).AutoFilter.Range.Offset(1).SpecialCells(xlCellTypeVisible)
    ReDim Ar(1 To UBound(Arr), 1 To 4): m = 1
    Ar(1, 1) = Cells(2, 1): Ar(1, 2) = Cells(2, 2)  '²Ä¤@¦C
    Ar(1, 3) = Cells(2, 4): Ar(1, 4) = Cells(2, 36)

   
    For i = 1 To UBound(Arr)
        T = Arr(i, 1) & Arr(i, 2) & Arr(i, 4)
        If InStr(T, "´£À˼Æ") Or InStr(T, "¨}«~¼Æ") Or InStr(T, "¨}²v") Then
            If xD(T & "/3") <> 1 Then
                xD(T & "/3") = 1: m = m + 1
                If xD(Arr(i, 1) & "/1") <> 1 Then xD(Arr(i, 1) & "/1") = 1: Ar(m, 1) = Arr(i, 1)
                If xD(Arr(i, 2) & "/2") <> 1 Then xD(Arr(i, 2) & "/2") = 1: Ar(m, 2) = Arr(i, 2)
                Ar(m, 3) = Arr(i, 4)
                If InStr(T, "¨}²v") Then Ar(m, 4) = Format(Arr(i, 36), "0%") Else Ar(m, 4) = Arr(i, 36)
            End If
        End If
    Next
   
    With Me.ListBox1
      .ColumnWidths = "40,50,70,40"
      .List = Ar
      .ColumnCount = m
    End With
End If
Sheets(b).Select
End Sub
§@ªÌ: wang077    ®É¶¡: 2021-7-30 15:54

¦^´_ 18# samwang
·PÁ¤j¤jÀ°¦£¡A§Ú¦³¦^«H¨ì§Aªºmail³á¡I
§@ªÌ: ­ã´£³¡ªL    ®É¶¡: 2021-7-31 09:45

¸Ü»¡³oºØªí³æ¬d¸ß¦³¦ó°µ¥Î???
­Y¬O¦]¬°ªí®æ¾î¼e¤ÎÁaªø¤Ó¤j, ·Q½Õ¥X«ü©w¸ê®Æ°µ­×§ï,
¨ºÁÙ¬O¦b­ìªí¾Þ§@¸û¹ê¦b~~
§@ªÌ: n7822123    ®É¶¡: 2021-7-31 13:31

¥»©«³Ì«á¥Ñ n7822123 ©ó 2021-7-31 13:34 ½s¿è

¦^´_ 20# ­ã´£³¡ªL

«¢«¢¡A§Ú¸ò­ã¤jªº·Qªk¤@¼Ë­C!  §Ú¤]ı±o³oªí³æ¦³ÂI¦h¾l

§ÚÀ³¸Ó·|ª½±µ®³¥t¤@­Óªí®æ·í°µ¾Þ§@¤¶­±

¨Ã¦b¤U­±¨q¥X¬d§äªº¸ê®Æ¡A°µ³oªí³æÁÙ¤£¬O­n "¸ê®Æ³B²z"¡A¤£·|¤ñ¸û¬Ù¨Æ


§@ªÌ: wang077    ®É¶¡: 2021-8-2 08:00

¦^´_ 20# ­ã´£³¡ªL
´N¹³­ã¤j»¡ªº¡A­ìªí¤Ó¹L©óÁcÂø
¥DºÞ·Q§ó§Ö½Õ¥X«ü©w¸ê®Æ¡A©Ò¥H¥Î¤Fªí³æ
§@ªÌ: wang077    ®É¶¡: 2021-8-2 08:01

¦^´_ 21# n7822123
¨ä¹ê§Ú¤]ı±o³Â·Ð¡A¦ý²¦³º¥DºÞ­n¨D




Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)