Cell A1 in Upper Left Corner

P

pjhageman

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
 
R

Rob van Gelder

Sub testit()
Dim rng As Range

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

Rob
 
D

Don Guillett

try

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top