ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Set Document Focus to Top of Datasheet (https://www.excelbanter.com/excel-programming/395148-set-document-focus-top-datasheet.html)

[email protected]

Set Document Focus to Top of Datasheet
 
When opening an excel doc, I'd like it alway to open with the top
portion of its datasheet visual. That is, the A1 cell should be
visible when the document opens. At the moment, it opens up to show
where in the document it was when it was last closed.



Thanks,

Aine


Dan R.

Set Document Focus to Top of Datasheet
 
Aine,

Put this in 'ThisWorkbook':

Private Sub Workbook_Open()
ActiveSheet.Range("A1").Select
End Sub

--
Dan


John Bundy

Set Document Focus to Top of Datasheet
 
Set the workbook on open event to select sheets("sheetname").cells(1,1)
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


" wrote:

When opening an excel doc, I'd like it alway to open with the top
portion of its datasheet visual. That is, the A1 cell should be
visible when the document opens. At the moment, it opens up to show
where in the document it was when it was last closed.



Thanks,

Aine




All times are GMT +1. The time now is 06:15 AM.

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