- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 28# owen9399 - Private Sub CommandButton3_Click() '¬d¸ß
- Dim I As Integer, Rng As Range
- With Sh(2)
- .AutoFilterMode = False
- For I = 1 To UBound(ar)
- If ar(I) <> "" Then .Range("A1").AutoFilter I, ar(I)
- Next
- '.Range("A:i").SpecialCells(xlCellTypeVisible).Copy .Range("AA1") ->'Sh(2)ªº AA1->AIøó
- '******* .ColumnCount = 8 'ListBox1³]©w8øó ©Ò¥H§ï¦¨¦p¤U********
- .Range("A:H").SpecialCells(xlCellTypeVisible).Copy .Range("AA1")
- .AutoFilterMode = False
- Set Rng = .Range("AA1").CurrentRegion.Offset(1) 'Sh(2)ªº AA1->AH :AIø󪺸ê®Æ,*****AIøó¶·¥ý§R±¼(¤â°Ê)*****
- End With
- ListBox1.RowSource = Rng.Address
- End Sub
- Private Sub CommandButton4_Click() '§R°£¾ã¦C
- Dim s, E As Range, I As Integer
- With ListBox1
- If .ListIndex = -1 Then MsgBox "¨S¦³¿ï¾Ü!!": Exit Sub
- s = Application.Index(Application.Transpose(Application.Transpose(.List)), IIf(.ListCount = 1, 0, 1))
- If Join(s, "") = "" Then MsgBox "¨S¦³¸ê®Æ!!": Exit Sub
- s = Application.Index(Application.Transpose(Application.Transpose(.List)), IIf(.ListCount = 1, 0, .ListIndex + 1))
- 'S= ListIndexªº¿ï¾Ü.ListIndex ¨º¤@¦Cªº¸ê®Æ,·|¤ñ Resize(, 8)¦h¤@øó.
- '·í
- '->.Range("A:i").SpecialCells(xlCellTypeVisible).Copy .Range("AA1") ->'Sh(2)ªº AA1->AIøó
- '-> For Each E In .Range("A1", .Range("A1").End(xlDown)).Resize(, 8).Rows '¾ã¦C:[ ¦Û°Ê½s¸¹......·~°Èû ]
- End With
- s = Join(s, ",") 'S: µ²¦X±±¨î¶µªº¦r¦ê [ ¦Û°Ê½s¸¹§Ç¸¹¤½¥q°tÃBµ§¼Æ¼ÆÈÀ³¥I¤w¥I(¶i³f¼Æ¶q1+¶i³f¼Æ¶q2)·~°Èû ]
- With Sh(2)
- For Each E In .Range("A1", .Range("A1").End(xlDown)).Resize(, 8).Rows '¾ã¦C:[ ¦Û°Ê½s¸¹......·~°Èû ]
- Debug.Print s
- Debug.Print Join(Application.Transpose(Application.Transpose(E)), ",")
- If s = Join(Application.Transpose(Application.Transpose(E)), ",") Then
-
- If MsgBox(Join(Application.Transpose(Application.Transpose(E.Value)), ","), vbYesNo, "§R°£¦C") = vbYes Then
- ³B¸Ì§R°£¾ã¦C E
- End If
- End If
- Next
- End With
- CommandButton3_Click '«·s¬d¸ß
- End Sub
½Æ»s¥N½X |
|