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

[µo°Ý] ➽¿z¿ïGÄæ>HÄæ>IÄæ

¦^´_ 3# samwang

GHIÄ欰¼Æ­È®æ¦¡
T$ ¬O¤å¦r®æ¦¡(String), ¥Î¨Ó¤ñ¹ï¤j¤p·|¦³°ÝÃD, ¨Ò¦p:"10.3" ·|³Q§P¤ñ "9.5"¤p
ª½±µ DIM T, T1, T2 §Y¥i

TOP

¦^´_ 1# peter95

Sub ex()
Dim arr, c, x%
With Sheets("Sheet1")
Set c = .Range(.[c2], .[l2])
Set arr = .[c2].CurrentRegion
For x = 2 To arr.Rows.Count
   If arr(x, 7) > arr(x, 8) And arr(x, 8) > arr(x, 9) Then Set c = Union(c, arr(x, 3).Resize(, 10))
Next
End With
c.Copy Sheets("¤u§@ªí1").[a1]
End Sub

TOP

¦^´_ 1# peter95
Sub test()
Dim Arr, i&, T$, T1$, T2$, k%, Brr(1 To 10000, 1 To 10)
Arr = Range([sheet1!L2], [sheet1!C65536].End(xlUp))
    For i = 2 To UBound(Arr)
        T = Arr(i, 5): T1 = Arr(i, 6): T2 = Arr(i, 7)
        If Arr(i, 5) = "" Then GoTo 100
        If T > T1 And T1 > T2 Then
            k = k + 1
            Brr(k, 1) = Arr(i, 1): Brr(k, 2) = Arr(i, 2)
            Brr(k, 3) = Arr(i, 3): Brr(k, 4) = Arr(i, 4)
            Brr(k, 5) = Arr(i, 5): Brr(k, 6) = Arr(i, 6)
            Brr(k, 7) = Arr(i, 7): Brr(k, 8) = Arr(i, 8)
            Brr(k, 9) = Arr(i, 9): Brr(k, 10) = Arr(i, 10)
        End If
100: Next
[¤u§@ªí1!A1:J1] = Array("½s¸¹", "²£«~", "Ãþ§O", "D", "1", "2", "3", "4", "5", "6")
[¤u§@ªí1!A2].Resize(k, 10) = Brr
End Sub

TOP

¥»©«³Ì«á¥Ñ hcm19522 ©ó 2024-1-25 10:32 ½s¿è

(¿é¤J½s¸¹12335) googleºô§}:https://draft.blogger.com/blog/posts/9094075214774179359
google"EXCEL°g"  blog  ©Îgoogleºô§}:https://hcm19522.blogspot.com/

TOP

        ÀR«ä¦Û¦b : ¨Ã«D¦³¿ú¾{¬O§Ö¼Ö¡A°Ý¤ßµL·\¤ß³Ì¦w¡C
ªð¦^¦Cªí ¤W¤@¥DÃD