ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cell A1 in Upper Left Corner (https://www.excelbanter.com/excel-programming/287490-cell-a1-upper-left-corner.html)

pjhageman[_6_]

Cell A1 in Upper Left Corner
 
When Ctl-Home are depressed, the cursor moves to cell A1, and cell A1 i
moved to the very upper left-most corner of the screen. What cod
would be used to place the cursor to cell A55 and move it to the uppe
left-most corner

--
Message posted from http://www.ExcelForum.com


Rob van Gelder[_4_]

Cell A1 in Upper Left Corner
 
Sub testit()
Dim rng As Range

Set rng = Range("A55")
With ActiveWindow
.ScrollRow = rng.Row
.ScrollColumn = rng.Column
End With
End Sub

Rob


"pjhageman " wrote in message
...
When Ctl-Home are depressed, the cursor moves to cell A1, and cell A1 is
moved to the very upper left-most corner of the screen. What code
would be used to place the cursor to cell A55 and move it to the upper
left-most corner?


---
Message posted from http://www.ExcelForum.com/




J.E. McGimpsey

Cell A1 in Upper Left Corner
 
One way:

Application.Goto _
Reference:=Range("A55"), _
Scroll:= True


In article ,
pjhageman wrote:

When Ctl-Home are depressed, the cursor moves to cell A1, and cell A1 is
moved to the very upper left-most corner of the screen. What code
would be used to place the cursor to cell A55 and move it to the upper
left-most corner?


---
Message posted from http://www.ExcelForum.com/


Don Guillett[_4_]

Cell A1 in Upper Left Corner
 
try

Application.Goto Worksheets("sheet10").Range("a55). Scroll:=True
for the active sheet just use
Application.Goto Range("a55"), Scroll:=True
--
Don Guillett
SalesAid Software

"pjhageman " wrote in message
...
When Ctl-Home are depressed, the cursor moves to cell A1, and cell A1 is
moved to the very upper left-most corner of the screen. What code
would be used to place the cursor to cell A55 and move it to the upper
left-most corner?


---
Message posted from
http://www.ExcelForum.com/





All times are GMT +1. The time now is 11:21 PM.

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