Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default Showing activecell in view

The last line of my code selects an entire row
cells(x,1).EntireRow.Select

I had hoped that this row would be in view to the user, but no, the sheet is
left where I last scrolled it to.

Can someone give me a piece of code that will scroll the sheet so that the
highlighted row is in view (if it makes a difference, I have Freeze Panes on
so that Row 1 and columns 1,2,3 are frozen)

Thanks in advance
Daniel
  #2   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default Showing activecell in view

Daniel

ActiveWindow.ScrollColumn = 1
ActiveWindow.ScrollRow = x

these commands set the row you choose to the top of the screen and the
column you choose to the left.

"Daniel Bonallack" wrote:

The last line of my code selects an entire row
cells(x,1).EntireRow.Select

I had hoped that this row would be in view to the user, but no, the sheet is
left where I last scrolled it to.

Can someone give me a piece of code that will scroll the sheet so that the
highlighted row is in view (if it makes a difference, I have Freeze Panes on
so that Row 1 and columns 1,2,3 are frozen)

Thanks in advance
Daniel

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Showing activecell in view

Hi Daniel

Try this
ActiveWindow.ScrollRow = Cells(10, 1).Row

Or this
Application.Goto Range("E10"), True


--
Regards Ron de Bruin
http://www.rondebruin.nl



"Daniel Bonallack" wrote in message
...
The last line of my code selects an entire row
cells(x,1).EntireRow.Select

I had hoped that this row would be in view to the user, but no, the sheet is
left where I last scrolled it to.

Can someone give me a piece of code that will scroll the sheet so that the
highlighted row is in view (if it makes a difference, I have Freeze Panes on
so that Row 1 and columns 1,2,3 are frozen)

Thanks in advance
Daniel



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Showing activecell in view

You're going to kick yourself...

Activecell.show

So obvious as to be invisible...


"Daniel Bonallack" wrote:

The last line of my code selects an entire row
cells(x,1).EntireRow.Select

I had hoped that this row would be in view to the user, but no, the sheet is
left where I last scrolled it to.

Can someone give me a piece of code that will scroll the sheet so that the
highlighted row is in view (if it makes a difference, I have Freeze Panes on
so that Row 1 and columns 1,2,3 are frozen)

Thanks in advance
Daniel

  #5   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default Showing activecell in view

well sure jim if you want to do it the EASY way :-p lol

"Jim Thomlinson" wrote:

You're going to kick yourself...

Activecell.show

So obvious as to be invisible...


"Daniel Bonallack" wrote:

The last line of my code selects an entire row
cells(x,1).EntireRow.Select

I had hoped that this row would be in view to the user, but no, the sheet is
left where I last scrolled it to.

Can someone give me a piece of code that will scroll the sheet so that the
highlighted row is in view (if it makes a difference, I have Freeze Panes on
so that Row 1 and columns 1,2,3 are frozen)

Thanks in advance
Daniel



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Showing activecell in view

Easy nothin... even I got it wrong... :) Come to think of it my getting it
wrong is not much of a stretch...

"ben" wrote:

well sure jim if you want to do it the EASY way :-p lol

"Jim Thomlinson" wrote:

You're going to kick yourself...

Activecell.show

So obvious as to be invisible...


"Daniel Bonallack" wrote:

The last line of my code selects an entire row
cells(x,1).EntireRow.Select

I had hoped that this row would be in view to the user, but no, the sheet is
left where I last scrolled it to.

Can someone give me a piece of code that will scroll the sheet so that the
highlighted row is in view (if it makes a difference, I have Freeze Panes on
so that Row 1 and columns 1,2,3 are frozen)

Thanks in advance
Daniel

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Showing activecell in view

Sorry in your case with the entire row selected you want

activecell.entirerow.show

So obvious that even I missed it... :)

"Jim Thomlinson" wrote:

You're going to kick yourself...

Activecell.show

So obvious as to be invisible...


"Daniel Bonallack" wrote:

The last line of my code selects an entire row
cells(x,1).EntireRow.Select

I had hoped that this row would be in view to the user, but no, the sheet is
left where I last scrolled it to.

Can someone give me a piece of code that will scroll the sheet so that the
highlighted row is in view (if it makes a difference, I have Freeze Panes on
so that Row 1 and columns 1,2,3 are frozen)

Thanks in advance
Daniel

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default Showing activecell in view

Thanks all! I guess I'll go with Jim's solution...

Daniel

"Jim Thomlinson" wrote:

You're going to kick yourself...

Activecell.show

So obvious as to be invisible...


"Daniel Bonallack" wrote:

The last line of my code selects an entire row
cells(x,1).EntireRow.Select

I had hoped that this row would be in view to the user, but no, the sheet is
left where I last scrolled it to.

Can someone give me a piece of code that will scroll the sheet so that the
highlighted row is in view (if it makes a difference, I have Freeze Panes on
so that Row 1 and columns 1,2,3 are frozen)

Thanks in advance
Daniel

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
How to turn off Page Layout View as default view Colin Halliday New Users to Excel 3 October 12th 07 02:37 AM
If activecell.column = variable then activecell,offset (0,1) Battykoda via OfficeKB.com Excel Discussion (Misc queries) 1 October 2nd 07 08:05 PM
Grid lines in Excel not showing.Have tools,options,view/grid cked bajlearning Excel Discussion (Misc queries) 6 January 28th 07 02:00 AM
How do I view color onscreen (it shows up in print view only) janice Excel Discussion (Misc queries) 1 August 15th 06 07:32 PM
column is hidden in normal view but not print view Bianca Excel Worksheet Functions 2 June 23rd 06 08:38 AM


All times are GMT +1. The time now is 09:37 PM.

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"