A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Last Question: Is there a variable that can be applied to the Cond5 through Cond8 that would clear the cell contents along with the .Interior.Color? I see that there is a .Delete but but no ClearContents.
Conditional formatting cannot change the value of a cell. It can only change the Display Format.
However, the following code can be run separately to clear the contents based on the Display Format.
Sub ClearContentsBasedOnCF()
Dim rngCF As Range
Dim rCel As Range
Set rngCF = Range("B38:O72")
For Each rCel In rngCF
If rCel.DisplayFormat.Interior.Color = vbBlack Then
rCel.ClearContents 'Removes the value from the cell
'rCel.FormatConditions.Delete 'Example: Removes ALL ConditionalFormat from the cell
End If
Next rCel
End Sub