Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
raj raj is offline
external usenet poster
 
Posts: 32
Default Scroll selection into view

Hello, I hope someone will be able to help me, please.

In Excel XP, I have a program that when the user double
clicks a value in a "SUMMARY" sheet, the program takes the
user to the details in a "DETAIL" sheet.

The program uses "Find" to locate the appropriate data.
The "DETAIL" sheet is activated and it all works great,
except one thing.

The selection (always an entire row) is not visible (off
screen). I need a way to scroll the currently selected row
into view (preferably toward the center of the screen)
without losing my selection.

Your example code would be most appreciated. Thank you
very much in advance for your assistance on this.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Scroll selection into view

ActiveWindow.ScrollRow = 1 'Or your required row number here

Amit


"raj" wrote in message
...
Hello, I hope someone will be able to help me, please.

In Excel XP, I have a program that when the user double
clicks a value in a "SUMMARY" sheet, the program takes the
user to the details in a "DETAIL" sheet.

The program uses "Find" to locate the appropriate data.
The "DETAIL" sheet is activated and it all works great,
except one thing.

The selection (always an entire row) is not visible (off
screen). I need a way to scroll the currently selected row
into view (preferably toward the center of the screen)
without losing my selection.

Your example code would be most appreciated. Thank you
very much in advance for your assistance on this.





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default Scroll selection into view


Hi,

I need a way to scroll the currently selected row
into view (preferably toward the center of the screen)
without losing my selection.


if you want to see cell(x, y):

ActiveWindow.ScrollColumn = y
ActiveWindow.ScrollRow = x

regards

arno


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
Column Headings Scroll out of view Grd Excel Discussion (Misc queries) 4 January 6th 08 11:21 PM
Scroll the screen view with the scroll bar avbs Excel Discussion (Misc queries) 1 June 25th 05 04:43 PM
Possible to view spreadsheets without scroll bars? londonchick Excel Discussion (Misc queries) 3 June 23rd 05 11:49 PM
On an Excel Worksheet I want to view column headings as I scroll . sharon Excel Discussion (Misc queries) 1 March 14th 05 11:39 PM


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