ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Go to worksheet upon opening (https://www.excelbanter.com/excel-programming/437152-go-worksheet-upon-opening.html)

SageOne

Go to worksheet upon opening
 
Is there a way to have the same worksheet pop up every time the excel file is
opened......

FSt1

Go to worksheet upon opening
 
hi
yes.
Private Sub Workbook_Open()
Sheets("Sheet1").Activate
Range("A1").Select
End Sub

adjust the sheet name and range to suit
this is workbook code.
press ALT+F11. this will bring up the vb editor.
at the far right, expand your project(file). double click ThisWorkbook.
in the code window(far right), click the right drop down and select Workbook.
the workbook open event should default in (see above).
paste the two line between workbook open and end sub above between workbook
open and end sub in your vb editor. close the vb window and save the file.
next time you open the file the file, excel will goto the sheet and range
you specify.

Regards
FSt1

"SageOne" wrote:

Is there a way to have the same worksheet pop up every time the excel file is
opened......



All times are GMT +1. The time now is 05:09 PM.

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