W
Wild Bill
I'm attempting to compare .UsedRange from two sheets and get the
addresses of Sheet2.UsedRange that are not addresses in
Sheet1.UsedRange. I wish I could test the Intersect() but they're
separate sheets.
My first thought was to For Each the cells in Sheet2, but I couldn't
come up with how to see if they were .Used in Sheet1. Maybe parse the
address, giving e.g. "E3" and use Intersect on Sheet1!E3 and
sheet1.usedrange?
My next demented thought was to create a temp sheet and create a Range1
there with the exact dimensions and starting point of Sheet1's
..UsedRange, and Range2 similarly, then perhaps go
for each rng in Range2
if not intersect(rng,Range1)
'a "non-match"
end if
next rng
This seems wasteful, but I'm just thinking out loud.
Please tell me that something like the first approach can work!
addresses of Sheet2.UsedRange that are not addresses in
Sheet1.UsedRange. I wish I could test the Intersect() but they're
separate sheets.
My first thought was to For Each the cells in Sheet2, but I couldn't
come up with how to see if they were .Used in Sheet1. Maybe parse the
address, giving e.g. "E3" and use Intersect on Sheet1!E3 and
sheet1.usedrange?
My next demented thought was to create a temp sheet and create a Range1
there with the exact dimensions and starting point of Sheet1's
..UsedRange, and Range2 similarly, then perhaps go
for each rng in Range2
if not intersect(rng,Range1)
'a "non-match"
end if
next rng
This seems wasteful, but I'm just thinking out loud.
Please tell me that something like the first approach can work!