have two named ranges "NameA" and "NameB"
When I loop though "A" and test for values how do I address the same row in "B"
Example
"NameA" "NameB"
1 text1
2 text2
3 text3
Something like:
For Each MyRange in Range("NameA")
if MyRange = 2 then
MyRange.Offset.Range("NameB") = "Changed text2"
next MyRange
I figure if use named ranges the end user can add and remove columns without breakn mycode
When I loop though "A" and test for values how do I address the same row in "B"
Example
"NameA" "NameB"
1 text1
2 text2
3 text3
Something like:
For Each MyRange in Range("NameA")
if MyRange = 2 then
MyRange.Offset.Range("NameB") = "Changed text2"
next MyRange
I figure if use named ranges the end user can add and remove columns without breakn mycode