Range subtraction in the Excel Object Model
Posted
by mcoolbeth
on Stack Overflow
See other posts from Stack Overflow
or by mcoolbeth
Published on 2010-05-13T19:05:04Z
Indexed on
2010/05/13
21:14 UTC
Read the original article
Hit count: 412
When using Excel Interop libraries from .NET, I can find a Range object representing the cell offset from Range X by calling something like.
Range Y = X.Range[2,3];
But what should I do to perform the inverse operation, ie: I have two Range objects, A
and B
, and I would like to find out by how many rows/columns B
is offset from A
.
Does anyone know the easiest way to do this? Is there a library function?
Thanks.
© Stack Overflow or respective owner