ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   ActiveCell to top left cell of a sheet (https://www.excelbanter.com/excel-programming/278414-activecell-top-left-cell-sheet.html)

Tom Atkisson

ActiveCell to top left cell of a sheet
 
Is there a way for the ActiveCell to be at the top left of a worksheet?



Jill[_3_]

ActiveCell to top left cell of a sheet
 
Tom,

Range("A1").Select
works for me.

-----Original Message-----
Is there a way for the ActiveCell to be at the top left

of a worksheet?


.


Don Guillett[_4_]

ActiveCell to top left cell of a sheet
 
Try one of these

Sub CtrlHome()
'ActiveWindow.VisibleRange.Resize(1, 1).Select
SendKeys "^{home}"
End Sub

"Tom Atkisson" wrote in message
...
Is there a way for the ActiveCell to be at the top left of a worksheet?





Chip Pearson

ActiveCell to top left cell of a sheet
 
Tom,

Try the following:

Sub ActiveCellToTopLeft()
ActiveWindow.ScrollColumn = ActiveCell.Column
ActiveWindow.ScrollRow = ActiveCell.Row
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com


"Tom Atkisson" wrote in message
...
Is there a way for the ActiveCell to be at the top left of a worksheet?






All times are GMT +1. The time now is 08:35 AM.

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