ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   navigation and re-centering the window (https://www.excelbanter.com/excel-programming/362550-navigation-re-centering-window.html)

gonger[_5_]

navigation and re-centering the window
 

This should be easy for somebody here ... I just can't remember

I have code written to go to various cell locations on a worksheet.
What is the code to have each of these cell locations to show up on the
top of the page? For example, if I'm on cell A1 and then direct it to
go to cell Z200, I don't want Z200 to show up in the middle of the
screen and then the user has to scroll up to move it to the top of the
page.


--
gonger
------------------------------------------------------------------------
gonger's Profile: http://www.excelforum.com/member.php...o&userid=34797
View this thread: http://www.excelforum.com/showthread...hreadid=545916


colofnature[_34_]

navigation and re-centering the window
 

ActiveWindow.ScrollColumn = range("z200").column
ActiveWindow.ScrollRow = range("z200").row


Col


--
colofnature
------------------------------------------------------------------------
colofnature's Profile: http://www.excelforum.com/member.php...o&userid=34356
View this thread: http://www.excelforum.com/showthread...hreadid=545916


gonger[_6_]

navigation and re-centering the window
 

outstanding! works just fine. Thanks, col.


--
gonger
------------------------------------------------------------------------
gonger's Profile: http://www.excelforum.com/member.php...o&userid=34797
View this thread: http://www.excelforum.com/showthread...hreadid=545916



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com