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

[µo°Ý] Excel VBA Àx¦s®æ¦rÅéÅܦâ¨Æ©y(¤£¦P§Ç­¶µLªkÅܦâ¡^

¦^´_ 9# syuan
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub Ex()
  3.     Dim A As Range
  4.     For Each A In Sheets("Sheet1").UsedRange
  5.         If InStr(A, "DOS") Then A.Font.Color = vbRed
  6.     Next
  7. End Sub
½Æ»s¥N½X

TOP

¦^´_ 11# syuan
¨S¿ùªº.
LIKE ¤]¥i¤ñ¹ï¦r¦ê
  1. ¥|¦¡ ¤À§O °õ¦æ¬Ý¬Ý  
  2.     If A   LIKE  "DOS" Then A.Font.Color = vbRed
  3.     If A   LIKE  "DOS*" Then A.Font.Color = vbRed
  4.     If A   LIKE  "*DOS" Then A.Font.Color = vbRed
  5.     If A   LIKE  "*DOS*" Then A.Font.Color = vbRed
½Æ»s¥N½X

TOP

¦^´_ 13# syuan
¬Ý§Aªº¹Ï¤ù:  µ{¦¡½X¤£§¹¾ã
  1.     Option Explicit
  2. Sub Ex()
  3.     Dim A As Range
  4.     For Each A In Sheets("Sheet1").UsedRange.Range("C:C")
  5.         If InStr(A, "DOS*") Then A.Font.Color = vbRed
  6.     Next
  7. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ÀR§¤±`®¦¤v¹L¡B¶¢½Í²ö½×¤H«D¡C
ªð¦^¦Cªí ¤W¤@¥DÃD