Glasgowsmile
Active Member
- Joined
- Apr 14, 2018
- Messages
- 280
- Office Version
- 365
- Platform
- Windows
I have this formula for Conditional formatting
and what I want to do... If the formatting is applied to any cell in range D7:NE41, then I want to apply that same formatting to D45:NE79 - the issue is that if I add that second range to the "Applies to" section of the conditional formatting, it doesn't work likely due to the range in the rule but data only exists up to row 41, so I assume that's why the rule doesn't work. I could create a helper column with the same data but I'm trying to avoid that.
So, I'm looking for a workaround.
My thought right now is below but it's not working, says Object required and I'm not sure what the issue is.
Excel Formula:
=ROUND($D$3*$C7,)>D7
So, I'm looking for a workaround.
My thought right now is below but it's not working, says Object required and I'm not sure what the issue is.
VBA Code:
Sub Colors()
If ThisWorksheet.Range("D7:NE41").Interior.Color = &HDA9694 Then
ThisWorksheet.Range("D45:NE79").Interior.Color = &HDA9694
End If
End Sub
Last edited: