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

[µo°Ý] VBA¡A¦h­Ó¤u§@ªí¡A¦P¨B§R°£«ü©w±ø¥ó¦C

¦^´_ 1# dennis
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub Ex()
  3.     Dim Rng As Range, Sh As Worksheet
  4.     For Each Sh In Sheets  'Sheets:¤u§@ªí¶°¦Xª«¥ó
  5.         Do
  6.             Set Rng = Sh.Cells.Find("ABC1234", Lookat:=xlWhole)
  7.             If Not Rng Is Nothing Then
  8.                 Rng.EntireRow.Delete
  9.                 Set Rng = Sh.Cells.Find("ABC1234", Lookat:=xlWhole)
  10.             End If
  11.         Loop Until Rng Is Nothing
  12.     Next
  13. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 4# dennis
¬O³o¼Ë¶Ü?
  1. Sub Ex()
  2.     Dim Rng As Range, i As Integer
  3.     Set Rng = Sheets(1).Cells.Find("64631325", Lookat:=xlWhole) '²Ä1±i¤u§@ªí¤¤´M§ä¤ÞÀº¸¹½X
  4.     If Not Rng Is Nothing Then
  5.             Rng.EntireRow.Delete
  6.         For i = 2 To Sheets.Count '²Ä2±i¤u§@ªí¨ì³Ì«á¤@±i¤u§@ªí
  7.             Sheets(i).Cells.SpecialCells(xlCellTypeFormulas, xlErrors).EntireRow.Delete
  8.         Next
  9.     End If
  10. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ­ì½Ì§O¤H´N¬Oµ½«Ý¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD