T
tskogstrom
I got two ranges/areas like:
rng1 = A1, A2:A4, A10:A100, A102
rng2 = A2:A3,A15;A102:A200
I need to get the ranges who differ:
Diff1 - the range content in rng1 "minus" rng2
A1, A4, A10:A14, A16:A100
Diff2 - the range content in rng2 "minus" rng1
A103:A200
- rng1, rng2, Diff1, Diff2 could also all be "nothing"
- the ranges come from a set rng1 =
Columns("A:A").SpecialCells(xlCellTypeFormulas, xlNumbers/xlLogical)
where the cell's contents are a formula with either a boolean "false"
or value 1 as result.
I have tried with intersect method, i have made for...next loops etc.
but can't make it work.
Can anybody give me a solution of this? I'll be forever grateful!
kind regards
Tskogstrom
rng1 = A1, A2:A4, A10:A100, A102
rng2 = A2:A3,A15;A102:A200
I need to get the ranges who differ:
Diff1 - the range content in rng1 "minus" rng2
A1, A4, A10:A14, A16:A100
Diff2 - the range content in rng2 "minus" rng1
A103:A200
- rng1, rng2, Diff1, Diff2 could also all be "nothing"
- the ranges come from a set rng1 =
Columns("A:A").SpecialCells(xlCellTypeFormulas, xlNumbers/xlLogical)
where the cell's contents are a formula with either a boolean "false"
or value 1 as result.
I have tried with intersect method, i have made for...next loops etc.
but can't make it work.
Can anybody give me a solution of this? I'll be forever grateful!
kind regards
Tskogstrom