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

[µo°Ý] ¨Ì·Ó¼ÐÃDÃöÁä¦r«ü©wÄæ¦ì±ø¥ó¦Ó§R°£¸ÓÄd

¦^´_ 5# billchenfantasy
  1. Sub ex()
  2. Dim Rng As Range, C As Range
  3. ar = Array("PLAN_NO", "PlAN_DAT")
  4. For Each C In Rows(1).SpecialCells(xlCellTypeConstants)
  5. n = 0
  6.    For Each a In ar
  7.      If InStr(UCase(C), UCase(a)) > 0 Then
  8.      n = n + 1
  9.      End If
  10.      If n = 0 Then
  11.         If Rng Is Nothing Then
  12.            Set Rng = C
  13.            Else
  14.            Set Rng = Union(Rng, C)
  15.         End If
  16.      End If
  17.   Next
  18. Next
  19. Rng.EntireColumn.Delete
  20. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 8# billchenfantasy
²Ä17¦æªºNext­n©¹«e©ñ
  1. Sub ex()

  2. Dim Rng As Range, C As Range
  3. ar = Array("PLAN_NO", "PLAN_DAT")
  4. For Each C In Rows(1).SpecialCells(xlCellTypeConstants)
  5. n = 0
  6.    For Each a In ar
  7.      If InStr(UCase(C), UCase(a)) > 0 Then
  8.      n = n + 1
  9.      End If
  10.    Next
  11.      If n = 0 Then
  12.         If Rng Is Nothing Then
  13.            Set Rng = C
  14.            Else
  15.            Set Rng = Union(Rng, C)
  16.         End If
  17.      End If
  18. Next
  19. Rng.EntireColumn.Delete
  20. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¦³Ä@©ñ¦b¤ß¸Ì¡A¨S¦³¨­Åé¤O¦æ¡A¥¿¦p¯Ñ¥Ð¤£¼½ºØ¡A¬Ò¬OªÅ¹L¦]½t¡C
ªð¦^¦Cªí ¤W¤@¥DÃD