Like the title says, I don't know how to check on a row which is grouped. I Googled it, but couldn't find anything.
this code here doesn't work:
if (((Excel.Range)sourceRange.Rows[i]).Group() == true) // doesn't work
{
...
}
Does somebody know how to check a row if it is grouped or not?
You can query the property
OutlineLevel
of theRange
object. If the value is 1 it is not grouped. Greater values mean that the region is in a (eventually nested) group.