PC Review


Reply
Thread Tools Rate Thread

Displaying active cell in particular position on screen

 
 
MJKelly
Guest
Posts: n/a
 
      19th Apr 2008

Hi,

I use a macro to select a cell. How can I make sure this cell is
positioned as the first cell outside of the frozen panes?

Matt
 
Reply With Quote
 
 
 
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      19th Apr 2008
By "outside of the frozen panes" I assume you mean the cell in top, left
position of the non-frozen area. If so, you can use this line of code to
select that cell...

Cells(ActiveWindow.SplitRow + 1, ActiveWindow.SplitColumn + 1).Select

Rick


"MJKelly" <(E-Mail Removed)> wrote in message
news:a17ccacd-3c7c-4968-b6bc-(E-Mail Removed)...
>
> Hi,
>
> I use a macro to select a cell. How can I make sure this cell is
> positioned as the first cell outside of the frozen panes?
>
> Matt


 
Reply With Quote
 
MJKelly
Guest
Posts: n/a
 
      19th Apr 2008
Rick,

I don't want to select the cell just outside of the frozen pane area,
I want the selected cell (selected by a macro) to become the first
vieweable cell outside of the frozen pane area. In other words, I
want to have a given column of data to be shown and everything to the
left of this column to be hidden behind my frozen pane.

Hope this makes sense?
Matt
 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      19th Apr 2008
Set the ScollColumn property of the ActiveWindow to the column number you
want butted up against the frozen pane. For example...

ActiveWindow.ScrollColumn = ActiveCell.Column

Rick


"MJKelly" <(E-Mail Removed)> wrote in message
news:d8f96f0d-3afc-423e-9335-(E-Mail Removed)...
> Rick,
>
> I don't want to select the cell just outside of the frozen pane area,
> I want the selected cell (selected by a macro) to become the first
> vieweable cell outside of the frozen pane area. In other words, I
> want to have a given column of data to be shown and everything to the
> left of this column to be hidden behind my frozen pane.
>
> Hope this makes sense?
> Matt


 
Reply With Quote
 
MJKelly
Guest
Posts: n/a
 
      19th Apr 2008
Excellent.
Thanks very much.
Matt
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Active cell position for macro =?Utf-8?B?TWVjaEVuZw==?= Microsoft Excel Worksheet Functions 8 3rd Dec 2010 05:45 PM
How to get the correct active Cell position in Worksheet_Change Johan2000 Microsoft Excel Programming 2 6th Mar 2008 01:58 AM
move within ss by active cell position, NOT by cell names =?Utf-8?B?QkVFSkFZ?= Microsoft Excel Programming 2 23rd Aug 2006 04:34 PM
Displaying a cell relative to the position to another cell Tibbs Microsoft Excel Misc 2 21st Jul 2006 08:28 AM
Active Cell Position Using Go To Or Hyperlink Keith Chipman Microsoft Excel Programming 1 19th Nov 2003 03:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:19 AM.