ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Workbook open to the same sheet (https://www.excelbanter.com/excel-programming/360126-workbook-open-same-sheet.html)

hccatmo

Workbook open to the same sheet
 
I'd like to know how to open the the same sheet of the workbook, regardless
of at which sheet it was save last.
Thx.
cg

JE McGimpsey

Workbook open to the same sheet
 
One way:

Put this in the ThisWorkbook module of the workbook:

Private Sub Workbook_Open()
Sheet1.Activate
End Sub

Where Sheet1 is the code name of the sheet you want to open.

In article ,
hccatmo wrote:

I'd like to know how to open the the same sheet of the workbook, regardless
of at which sheet it was save last.
Thx.
cg


hccatmo

Workbook open to the same sheet
 
Did try on a module but not work!

How do I get to the ThisWorkbook module from
Tools
Macro
Visual Basic Editor
Thx.
cg

"JE McGimpsey" wrote:

One way:

Put this in the ThisWorkbook module of the workbook:

Private Sub Workbook_Open()
Sheet1.Activate
End Sub

Where Sheet1 is the code name of the sheet you want to open.

In article ,
hccatmo wrote:

I'd like to know how to open the the same sheet of the workbook, regardless
of at which sheet it was save last.
Thx.
cg



JE McGimpsey

Workbook open to the same sheet
 
See

http://www.mcgimpsey.com/excel/modules.html

In article ,
hccatmo wrote:

How do I get to the ThisWorkbook module from
Tools
Macro
Visual Basic Editor


hccatmo

Workbook open to the same sheet
 
I found it. Yes. It does work.
Thanks, JE McGimpsey.
cg

"hccatmo" wrote:

Did try on a module but not work!

How do I get to the ThisWorkbook module from
Tools
Macro
Visual Basic Editor
Thx.
cg

"JE McGimpsey" wrote:

One way:

Put this in the ThisWorkbook module of the workbook:

Private Sub Workbook_Open()
Sheet1.Activate
End Sub

Where Sheet1 is the code name of the sheet you want to open.

In article ,
hccatmo wrote:

I'd like to know how to open the the same sheet of the workbook, regardless
of at which sheet it was save last.
Thx.
cg




All times are GMT +1. The time now is 05:47 AM.

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