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

[µo°Ý] VBA¦p¦ó¨ú±o³Ì«á¤@Ä檺Äæ¼Æ

¥»©«³Ì«á¥Ñ ML089 ©ó 2016-5-6 17:15 ½s¿è

ÁÙ¬O¥Î¦^°é¨Ó¨M¸Ñ

Sub ex()
    For r = Cells(Rows.Count, 1).End(xlUp).Row To 1 Step -1
        If 0 = Application.CountA(Range(Cells(r, "A"), Cells(r, "F"))) Then '§PÂ_A~FÄæ¨S¦³¸ê®Æ¤~§R°£¦¹¦C
            Rows(r).EntireRow.Delete
        End If
    Next
End Sub
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 8# mave

³o¤TºØ³£¥i¥H¨ú±oEXCEL ¤u§@ªí¨ç¼Æ¦bVBA¤¤¨Ï¥Î¡C

Sub ex()
a = Application.WorksheetFunction.CountA([A:A])
b = Application.CountA([A:A])
c = WorksheetFunction.CountA([A:A])
Debug.Print a, b, c
End Sub
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 10# mave

application.XXX »P WorksheetFunction.XXX©Îapplication.WorksheetFunction.XXX¥Îªk
°Ñ¦Ò
http://forum.twbts.com/viewthrea ... p;extra=&page=1
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

        ÀR«ä¦Û¦b : ®É®É¦n¤ß´N¬O®É®É¦n¤é¡C
ªð¦^¦Cªí ¤W¤@¥DÃD