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

[µo°Ý] ½Ð±Ð§R°£¤@¾ã¦C°ÝÃD

[µo°Ý] ½Ð±Ð§R°£¤@¾ã¦C°ÝÃD

¦U¦ì¤j¤j±z¦n

ªþ¥ó¤¤¡A¦pªG§ÚN¦æªº¥ô¤@­ÓÀx¦s®æ¬O0ªº¸Ü
´N§â0©Ò¦bªº¨º¤@¦C¾ã¦C§R°£
§ÚÀ³¸Ó­n«ç»ò¤U«ü¥O
·PÁ±z

Book1.zip (8.09 KB)

ªþ¥ó

¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-9-20 17:00 ½s¿è

¦^´_ 1# xbzxbzxbz
  1. Option Explicit
  2. Sub Ex()
  3.     Dim R As Range, Rng As Range
  4.     For Each R In ActiveSheet.Range("J:N").SpecialCells(xlCellTypeConstants).Rows
  5.     'ActiveSheet(§@¥Î¤u§@ªí) SpecialCells(xlCellTypeConstants "¥]§t±`¼ÆªºÀx¦s®æ")
  6.          If Not IsError(Application.Match(0, R, 0)) Then
  7.             '¤u§@ªí¨ç¼ÆMatch ´M§ä¨ì0 ¶Ç¦^¼Æ¦r,§ä¤£¨ì0 ¶Ç¦^¿ù»~­È #N/A
  8.             If Rng Is Nothing Then Set Rng = R Else Set Rng = Union(R, Rng)
  9.             'Union ¤èªk ¶Ç¦^¨â­Ó©Î¦h­Ó½d³òªº¦X¨Ö½d³ò¡C
  10.         End If
  11.    Next
  12.    If Not Rng Is Nothing Then Rng.EntireRow.Delete   '½d³ò¾ãÄæ§R°£
  13. End Sub
½Æ»s¥N½X

TOP

¦^´_ 2# GBKEE


GBKEE¤j¤j

§Ú¹ï±zªº´º¥õ¦³¦p·Ê·Ê¦¿¤ô³sºø¤£µ´

·PÁ±z

TOP

¦^´_ 2# GBKEE


    ½Ð°Ý¤@¤U¦U¦ì¤j¤j

³o­Ó¤½¦¡¬O·íNÄæ¦ìªº­È¬°0ªº®É«á¡A§R°£¤@¾ã¦C
Option Explicit
Sub Ex()

Dim R As Range, Rng As Range

For Each R In ActiveSheet.Range("N:N").SpecialCells(xlCellTypeConstants).Rows


      If Not IsError(Application.Match(0, R, 0)) Then

         If Rng Is Nothing Then Set Rng = R Else Set Rng = Union(R, Rng)

     End If

Next

If Not Rng Is Nothing Then Rng.EntireRow.Delete

End Sub

­Y­n§ï¦¨NÄæ¦ìªº­È¶W¹L1800ªº®É«á¡A§R°£¤@¾ã¦C
½Ð°Ý­n¦p¦ó¶i¦æ­×§ï?
·PÁÂ!!

TOP

¦^´_ 4# xbzxbzxbz
½Ð¨ì¤u§@ªí¬d¬Ý¨ç¼ÆMatch»¡©ú
Match_type    ¬O­Ó¼Æ¦r¡A¨ä­È¦³¤TºØ¥i¯à¡G-1¡B0 ©Î 1¡C¥Î¥H«ü©w Microsoft Excel ¦p¦ó±q lookup_array ¸Ì´M§ä lookup_value¡C
¦pªG match_type ¬O 1¡A«h MATCH ¨ç¼Æ·|§ä¨ìµ¥©ó©Î¶È¦¸©ó lookup_value ªº­È¡CLookup_array ¥²¶·¥H»¼¼W¦¸§Ç±Æ¦C¡G...-2, -1, 0, 1, 2, ..., A-Z, FALSE, TRUE¡C
¦pªG match_type ¬O 0¡A«h MATCH ¨ç¼Æ·|§ä²Ä¤@­Ó§¹¥þµ¥©ó lookup_value ªº¤ñ¸û­È¡CLookup_array ¥i¥H¨Ì¥ô·N¦¸§Ç±Æ¦C¡C
¦pªG match_type ¬O -1¡A«h MATCH ¨ç¼Æ·|§ä¨ìµ¥©ó©Î¤j©ó lookup_value ªº³Ì¤p­È¡CLookup_array ¥²¶·¥H»¼´î¦¸§Ç±Æ§Ç¡GTRUE, FALSE, Z-A, ...2, 1, 0, -1, -2, ...¡A¥H¦¹Ãþ±À¡C
¦pªG match_type ¤Þ¼Æ³Q¬Ù²¤¡A«h°²³]¨ä­È¬° 1¡C
  1. Option Explicit
  2. Sub Ex()
  3.     Dim R As Range, Rng As Range
  4.     For Each R In ActiveSheet.Range("J:N").SpecialCells(xlCellTypeConstants).Rows
  5.     'ActiveSheet(§@¥Î¤u§@ªí) SpecialCells(xlCellTypeConstants "¥]§t±`¼ÆªºÀx¦s®æ")
  6.          If Not IsError(Application.Match(1800, R, -1)) Then
  7.             '¤u§@ªí¨ç¼ÆMatch ´M§ä¨ì0 ¶Ç¦^¼Æ¦r,§ä¤£¨ì0 ¶Ç¦^¿ù»~­È #N/A
  8.             If Rng Is Nothing Then Set Rng = R Else Set Rng = Union(R, Rng)
  9.             'Union ¤èªk ¶Ç¦^¨â­Ó©Î¦h­Ó½d³òªº¦X¨Ö½d³ò¡C
  10.         End If
  11.    Next
  12.    If Not Rng Is Nothing Then Rng.EntireRow.Delete   '½d³ò¾ãÄæ§R°£
  13. End Sub
½Æ»s¥N½X

TOP

¦^´_ 5# GBKEE


    ·PÁÂGBKEE¤j¤j¸Ô²Óªº¸Ñ»¡
    ¤S¾Ç¨ì¤@©Û¤F
    ¯uªº·PÁ±z

TOP

        ÀR«ä¦Û¦b : ¬O«D·í±Ð¨|¡AÆg¬ü§@ĵ±§¡C
ªð¦^¦Cªí ¤W¤@¥DÃD