Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default [Interops] OutlineLevel and Hidden property

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default [Interops] OutlineLevel and Hidden property

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.

--
Regards,
Tom Ogilvy

"Patrick Kowalzick" wrote in message
...
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




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default [Interops] OutlineLevel and Hidden property

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the alternative for PlotArea.Fill. Fill property is hidden srinivas Tirumala[_2_] New Users to Excel 1 September 4th 09 09:36 PM
Runtime error 380: Could not set the List property. invalid property value of listbox jasgrand Excel Programming 0 October 6th 04 09:28 PM
Is there a Filename property in PrintOut property Christian[_6_] Excel Programming 4 September 3rd 04 10:12 PM
Run Time Error 1004 Unable to set hidden property Lester Lee Excel Programming 3 July 22nd 04 03:31 AM
OutlineLevel and Integer Variable issue jurgenC![_2_] Excel Programming 2 January 30th 04 10:32 PM


All times are GMT +1. The time now is 10:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"