Im trying to create a code within a spreadsheet that will highlight a separate range of cells (A28:D28) when 2 different conditions on cells E13="Country" and F13="State" are met, F13 has a validation dependent on the value on E13 which also has a data validation. So far I have this code, which I think makes no sense at all.
Set A = Range("E13")
If Not Intersect(Target, A) Is Nothing Then
If A = "Country" Then
For Each A In Range("E13")
If A.Offset(0, 1) = "State" Then
A.Interior.ColorIndex = 5
End If
End If
End If
This code would be used for multiple combinations across multiple sections to highlight multiple ranges but I think I can manage to copy paste and change ranges, Im sorry to say my VBA skills are not that good. All of this goes after a code that returns MsgBoxs when certain criteria is met on a separate set of ranges.
Thank you!