Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Is there a way to get the range from a frozen panes using C#?

Hi all,

I was wondering if there is a way to get the range from the frozen panes in
excel using interop v.12??

Or is there a property associated with the range indicating its frozen or
not??

the only thing i could accomplish is to select a range then check
ActiveWindow.FreezePanes, but this will return true if you have any range
frozen other than the selected one, so i want to get the range from the
current Frozen panes.

Thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Is there a way to get the range from a frozen panes using C#?

Ok thanks for all who read the question, i found the answer and here it is
for anyone who is seeking this answer:

Application.ActiveWindow.VisibleRange[1,Type.Missing] as Range -- this will
return the cell where the froze began, if you want the whole range then use:

Application.ActiveWindow.VisibleRange as Range;

"Yazeed" wrote:

Hi all,

I was wondering if there is a way to get the range from the frozen panes in
excel using interop v.12??

Or is there a property associated with the range indicating its frozen or
not??

the only thing i could accomplish is to select a range then check
ActiveWindow.FreezePanes, but this will return true if you have any range
frozen other than the selected one, so i want to get the range from the
current Frozen panes.

Thanks in advance.

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
Print Frozen Panes? CyberSockeye Excel Discussion (Misc queries) 2 April 23rd 08 10:23 PM
PIA and Frozen Panes Scott T Excel Programming 1 March 19th 08 06:19 PM
How to select Visible Cells range minus 2 rows (frozen panes) LuisE Excel Programming 5 November 22nd 07 05:01 AM
frozen panes jmack Excel Discussion (Misc queries) 2 May 11th 07 09:00 AM
frozen panes question Gary Keramidas Excel Programming 4 October 19th 06 02:51 PM


All times are GMT +1. The time now is 10:18 AM.

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"