セル色変え
セルの色を変えたいときは下記のように記載します。
With Selection.Interior
.ColorIndex = 色コード
.Pattern = xlSolid
End With
With Selection.Interior
.ColorIndex = 3
.Pattern = xlSolid
End With
上記のように記載すると、アクティブセルが赤に塗りつぶされます。
セルの色を変えたいときは下記のように記載します。
With Selection.Interior
.ColorIndex = 色コード
.Pattern = xlSolid
End With
With Selection.Interior
.ColorIndex = 3
.Pattern = xlSolid
End With
上記のように記載すると、アクティブセルが赤に塗りつぶされます。