Basic Exercise
Determine the resulting area from the "Ranges" intersection and change the background color to green.
Initial cell | Offset | Resize | |
---|---|---|---|
Range "V" | "B3" | (4,1) | (11,5) |
Range "B" | "H3" | (-6,-3) | (8,4) |
Range "A" | "A21" | (-9,5) | (9,4) |
Intersect(Range("A1:A2"), Range("A2:B2")).Value = 0
'Only the result of the intersection ("A2") is assigned with the value 0
Remember that in most cases there is more than one way to solve the exercise.
Hint: Note that the Resize property accepts anly one positive argument.
SuperExcelVBA.com is learning website. Examples might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. All Rights Reserved.
Excel ® is a registered trademark of the Microsoft Corporation.
© 2024 SuperExcelVBA | ABOUT