ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Application.Goto reference:="MyCell" (https://www.excelbanter.com/excel-programming/337354-application-goto-reference-%3D-mycell.html)

akyhne[_2_]

Application.Goto reference:="MyCell"
 
If I have a named range called MyCell, and I go there with Application.Goto
reference:="MyCell", I would like to have the Sheet scroll this range to the
top of the Window.

Charlie

Application.Goto reference:="MyCell"
 
You can probably calculate how to scroll the window based on the location of
the upper-left cell of "MyCell", but I did it by:

ActiveCell.SpecialCells(xlLastCell).Select
Selection.End(xlDown).Select
Selection.End(xlToRight).Select
Application.Goto "MyCell"


"akyhne" wrote:

If I have a named range called MyCell, and I go there with Application.Goto
reference:="MyCell", I would like to have the Sheet scroll this range to the
top of the Window.



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

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