Is there a way to recall the .interior properties of a cell?
I currently have code like
but this isn't set quite how I want it. So I would like to use conditional formatting on some cells in excel and then basically copy the cell properties from that to use for my code.
I currently have code like
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
With Range("C5:C55").Interior
Select Case Range("C56").Value
Case 0
.ColorIndex = 9
.Pattern = xlSolid
.TintAndShade = 0
Case 1 To 2
.ColorIndex = 9
.Pattern = xlSolid
.TintAndShade = 0.1
Case 3 To 4
.ColorIndex = 9
.Pattern = xlSolid
.TintAndShade = 0.2
etc
but this isn't set quite how I want it. So I would like to use conditional formatting on some cells in excel and then basically copy the cell properties from that to use for my code.