1

I m trying to refer to two different ranges in the same formula but i am not getting the desirable outcoume.

Ranges:

.Range("A3:A" & LastRowA) .Range("H3:H" & LastRowH) 

Complete formula used:

.Range("A3:A" & LastRowA, "H3:H" & LastRowH).Interior.Color = vbRed 

What i get:

enter image description here

Desirable outcome:

enter image description here

1 Answer 1

1

i manage to find an answer. in case someone face the same issue:

Union(.Range("A3:A" & LastRowA), .Range("H3:H" & LastRowH)).Interior.Color = vbRed 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.