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

[µo°Ý] ¼W¥[¡i¨ú¥N¡jªº»yªk¡C

¦^´_ 4# Airman

         
           ½Ð°Ñ¦Ò¡AÀˬd¬Ý¬Ý³o¬O¤£¬O§A­nªº¡G
                      For Each Rng In .Range("AZ1:CC1")
                              Rng.Value = Replace(Rng, "¤j", "¤p")
                              If Rng.Interior.ColorIndex = 43 Then
                                    Rng.Interior.ColorIndex = 40
                              ElseIf Rng.Interior.ColorIndex = 8 Then
                                    Rng.Interior.ColorIndex = 39
                              ElseIf Rng.Interior.ColorIndex = 37 Then
                                    Rng.Interior.ColorIndex = 45
                              End If
                        Next

¤W­±ªº´N¨ú¥N¤U­±ªºÅo¡F
''''                      Range("AZ1:CC1").Replace "¤j", "¤p"
''''
''''                      Range("AZ1:CC1").Select
''''                      Application.FindFormat.Interior.ColorIndex = 43
''''                      Application.ReplaceFormat.Interior.ColorIndex = 40
''''                      Selection.Replace What:="", Replacement:="", LookAt:=xlPart, SearchOrder _
''''                      :=xlByColumns, MatchCase:=False, SearchFormat:=True, ReplaceFormat:=True
''''
''''                      Application.FindFormat.Interior.ColorIndex = 8
''''                      Application.ReplaceFormat.Interior.ColorIndex = 39
''''                      Selection.Replace What:="", Replacement:="", LookAt:=xlPart, SearchOrder _
''''                      :=xlByColumns, MatchCase:=False, SearchFormat:=True, ReplaceFormat:=True
''''
''''                      Application.FindFormat.Interior.ColorIndex = 37
''''                      Application.ReplaceFormat.Interior.ColorIndex = 45
''''                      Selection.Replace What:="", Replacement:="", LookAt:=xlPart, SearchOrder _
''''                      :=xlByColumns, MatchCase:=False, SearchFormat:=True, ReplaceFormat:=True

TOP

¥»©«³Ì«á¥Ñ Scott090 ©ó 2019-5-18 11:51 ½s¿è

¦^´_ 4# Airman



         ¦b²¤Æ¸Õ¸Õ¬Ý¡G
                With ActiveSheet
                        .Name = "«e3¤p"
                        .Tab.Color = RGB(255, 255, 0)
                        
                        For Each Rng In .Range("AZ1:CC1")
                              Rng.Value = Replace(Rng, "¤j", "¤p")
                              i = Rng.Interior.ColorIndex
          Rng.Interior.ColorIndex = IIf(i = 43, 40, IIf(i = 8, 39, IIf(i = 37, 45, i)))

                        Next
              End With

TOP

¦^´_ 7# ­ã´£³¡ªL

    ­ã¤j¡G
    ¥Î Switch ¬O¤@­Ó«Ü¦nªº¼gªk¡A
     ÁÂÁ´£¿ô

TOP

¦^´_ 10# Airman


    §Ú¨S¦³¨ä¥L·Qªk¡A°Ý¬Ý¬Ý¨ä¥L°ª¤â¤j¤j­Ì¬O§_¦³¨ä¥L¸Ñªk¡C

TOP

        ÀR«ä¦Û¦b : °µ¸Ó°µªº¨Æ¬O´¼¼z¡A°µ¤£¸Ó°µªº¨Æ¬O·Mè¡C
ªð¦^¦Cªí ¤W¤@¥DÃD