Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default freeze pane command usage (clarified)

just plain old stuck on this one...

How would I go about freezing the view of my active window at D4, with B2 at
the top left corner of the screen (first visible row, top row = 2, first
visible column, left -most column = col B) ?

clarification:
i'm looking for a way to do this with code, knowing that the active cell
might be anywhere on the sheet (although, after i do all of this "stuff",
the active
cell would be in the "visible range of cells" -lets say: E5...)


as always, thanks in advance,
Mark


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default freeze pane command usage (clarified)

Hi Mark,

Try this

Application.Goto reference:=Range("b2"), Scroll:=True
Range("D4").Select
ActiveWindow.FreezePanes = True
Range("E5").Select

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"mark kubicki" wrote in message
...
just plain old stuck on this one...

How would I go about freezing the view of my active window at D4, with B2

at
the top left corner of the screen (first visible row, top row = 2, first
visible column, left -most column = col B) ?

clarification:
i'm looking for a way to do this with code, knowing that the active cell
might be anywhere on the sheet (although, after i do all of this "stuff",
the active
cell would be in the "visible range of cells" -lets say: E5...)


as always, thanks in advance,
Mark




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default freeze pane command usage (clarified)

Hi
maybe not exactly what you want but try

sub foo()
columns(1).hidden=true
rows(1).hidden=true
Range("D4").Select
ActiveWindow.FreezePanes = True
Range("E5").Select
end sub

--
Regards
Frank Kabel
Frankfurt, Germany

mark kubicki wrote:
just plain old stuck on this one...

How would I go about freezing the view of my active window at D4,
with B2 at the top left corner of the screen (first visible row, top
row = 2, first visible column, left -most column = col B) ?

clarification:
i'm looking for a way to do this with code, knowing that the active
cell might be anywhere on the sheet (although, after i do all of this
"stuff", the active
cell would be in the "visible range of cells" -lets say: E5...)


as always, thanks in advance,
Mark


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
Freeze pane command on 2007 not highlighted John Excel Discussion (Misc queries) 2 August 24th 08 09:56 PM
freeze pane: freeze from two worksheets? Chris Excel Discussion (Misc queries) 4 May 27th 08 01:17 AM
freeze pane for more than one row anyone??? Angela1 Excel Discussion (Misc queries) 4 September 24th 07 03:06 AM
Freeze Pane command freezes more cells than I selected. Sheryl Excel Worksheet Functions 1 November 15th 04 09:52 PM
freeze pane command usage mark kubicki Excel Programming 2 March 4th 04 11:13 PM


All times are GMT +1. The time now is 10:13 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"