[Interops] OutlineLevel and Hidden property

P

Patrick Kowalzick

Dear NG,

I am programming against Excel using C# and the interops. I am trying to
access the property OutlineLevel or the Hidden property of a range.

It compiles fine but throws the exception:

"Unable to get the OutlineLevel property of the Range class"
"Unable to get the Hidden property of the Range class"

How can I come around this?

Regards,
Patrick
 
T

Tom Ogilvy

An entirerow or entirecolumn is hidden, not a single cell.

? activecell.entirerow.Hidden
True

I don't believe a range will have an outlinelevel unless it is part of an
outline.
 
P

Patrick Kowalzick

Dear Tom,
An entirerow or entirecolumn is hidden, not a single cell.

Perfect. Thanks
I don't believe a range will have an outlinelevel unless it is part of an
outline.

The outline level is 1 for the case mentioned.
But, same as above, an entirerow or entirecolumn has an OutlineLevel, not a
single cell (or Range).

Thanks. Saved my mood for today :).

Patrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top