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