お世話になります。 入力シートのG17セルに入力された値(文字列)によって、別シートのT列の指定されたセルに色(赤)をつける処理をしたいのですが、 R = Range("E17") シート = Range("F17) 経過区分 = Range("G17") R = Range("E17") + 5 If R = 5 Then R = 6 End If Worksheets(シート).Range("T" & R) = 経過区分 If 経過区分 = "障害中" Then Worksheets(シート).Range("T" & R).Select With Selection.Interior .ColorIndex = 3 .Pattern = xlSolid End With End If