Hi,
Hoping someone can sort this one for me.
I have an array of worksheets called MySht and an array of ranges called MyRng. What I am trying to do is loop through the range array with the first worksheet and then move to the second worksheet and do the same. I was hoping to do it something like :
code is failing on the ws.rng bit
what am i doing wrong??
Hoping someone can sort this one for me.
I have an array of worksheets called MySht and an array of ranges called MyRng. What I am trying to do is loop through the range array with the first worksheet and then move to the second worksheet and do the same. I was hoping to do it something like :
VBA Code:
For each ws in MySht
For each Rng in MyRng
set srchrng = ws.rng
'CODE THEN DOES SOME OTHER BITS
next rng
next ws
code is failing on the ws.rng bit
what am i doing wrong??