LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 341
Default Excel 2003 positioning a cell to first non frozen cell

Hiya Jack

This seems to work. If you have got the inputbox working you will be well
capable of replacing Cells.Find("X") with the range you are trying to get to

Sub Allllen()

Dim rgTarget As Range

Set rgTarget = Cells.Find("X")

iSR = ActiveWindow.ScrollRow
iSC = ActiveWindow.ScrollColumn

iTR = rgTarget.Row
iTC = rgTarget.Column

iVertAdj = iTR - iSR
iHorAdj = iTC - iSC

ActiveWindow.SmallScroll ToRight:=iHorAdj
ActiveWindow.SmallScroll Down:=iVertAdj

End Sub
--
Allllen


"JackGombola" wrote:

Hello All: I have an Excel 2003 spreadsheet that looks like this:
A B C
1 Lastname Firstname Col1 Col2 Col3 €¦ Col111
2 Lname 1 Fname1 FZN
.
.
.
101 Lname100 Fname100 X

Column C2 is frozen (FZN text above) so that I can scroll the columns and
rows without loosing my lastnames or firstnames in each row, or the column
headings.

I respond to an InputBox with €œJack,Gombola,Col111€ and the macro correctly
finds the right target cell as Row 101, col 111 (X marks this cell). What I
would like the macro to do next is to scroll the sheet horizontally and
vertically so that the X cell becomes positioned to the first frozen
location: FZN shown above.

Any suggestions are appreciated.
Thanks,
Jack

 
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
Returning reference of frozen cell GilesT Excel Programming 5 June 25th 07 09:43 PM
Programming a 'frozen' cell Paddler Excel Programming 2 October 2nd 06 06:14 PM
Returning reference of frozen cell Pete at Sappi Fine Paper Excel Programming 4 August 18th 06 03:29 PM
Frozen is cell Stac at Chase Excel Discussion (Misc queries) 1 October 13th 05 07:48 PM
Positioning an Object (say a box) on a Excel cell Ken Excel Programming 3 October 5th 05 05:47 AM


All times are GMT +1. The time now is 04:33 AM.

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

About Us

"It's about Microsoft Excel"