ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Open Workbook Formula (https://www.excelbanter.com/excel-worksheet-functions/228886-open-workbook-formula.html)

gia

Open Workbook Formula
 
I need a formula for when a workbook is opened it will default to a specific
tab.

Harlan Grove[_2_]

Open Workbook Formula
 
Gia wrote...
I need a formula for when a workbook is opened it will default to a specific
tab.


Formulas can't do this. Only macros can. Can you use macros? If so, in
the ThisWorkbook class module create a Workbook_Open event handler
macro like

Private Sub Workbook_Open()
Me.Worksheets("worksheet name here").Activate
End Sub


Sheeloo

Open Workbook Formula
 
Press Alt-F11 to open VB Editor
Double click on 'ThisWorkbook' on the left
Paste this macro in the right pane after replacing Sheet2 with the name of
the sheet you want to open to
Private Sub Workbook_Open()

Worksheets("Sheet2").Activate

End Sub


"Gia" wrote:

I need a formula for when a workbook is opened it will default to a specific
tab.



All times are GMT +1. The time now is 12:54 PM.

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