ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   To fix a sheet in MS Office to be opened first always (https://www.excelbanter.com/excel-worksheet-functions/65513-fix-sheet-ms-office-opened-first-always.html)

Shariq

To fix a sheet in MS Office to be opened first always
 
I'd like to know if it is possibe to fix a certain sheet to be opened always
on top, I mean I have (hyper)linked a worksheet with other sheets and
workbook, so when I close this book and click open again no matter which ever
sheet was open, but it should always open a certain sheet of the book I would
want to.

Norman Jones

To fix a sheet in MS Office to be opened first always
 
Hi Shariq,

Try:
'=============
Private Sub Workbook_Open()
Me.Sheets("Sheet1").Activate
End Sub
'<<=============

Change Sheet1 to the sheet of interest.

This is workbook event code and should be pasted into the workbook's
ThisWorkbook module *not* a standard module or a sheet module):

Right-click the Excel icon on the worksheet
(or the icon to the left of the File menu if your workbook is maximised)
Select 'View Code' from the menu and paste the code.
Alt-F11 to return to Excel.

If you are not familiar with macros, you may wish to visit David McRitchie's
'Getting Started With Macros And User Defined Functions' at:

http://www.mvps.org/dmcritchie/excel/getstarted.htm


---
Regards,
Norman


"Shariq" wrote in message
...
I'd like to know if it is possibe to fix a certain sheet to be opened
always
on top, I mean I have (hyper)linked a worksheet with other sheets and
workbook, so when I close this book and click open again no matter which
ever
sheet was open, but it should always open a certain sheet of the book I
would
want to.




Shariq

To fix a sheet in MS Office to be opened first always
 
Hi Norman,

Thanx 4 looking 2 my query, I M not sure if I've got my question right,
well, here it is again I'm working with several books each book containing
several sheets linked with each other, but certain book which is sort of a
main board or a menu has also some other sheets, I know if I only leave one
sheet in this book it will automatically open this only sheet, but what do I
have to do in order to make it work, that whenever I open this book it should
always show that sheet having hyperlinks to other books and sheets,

I'd appreciate a lot if you could help me out with this, and shell be
waiting for your response.

Regards Shariq,


"Norman Jones" wrote:

Hi Shariq,

Try:
'=============
Private Sub Workbook_Open()
Me.Sheets("Sheet1").Activate
End Sub
'<<=============

Change Sheet1 to the sheet of interest.

This is workbook event code and should be pasted into the workbook's
ThisWorkbook module *not* a standard module or a sheet module):

Right-click the Excel icon on the worksheet
(or the icon to the left of the File menu if your workbook is maximised)
Select 'View Code' from the menu and paste the code.
Alt-F11 to return to Excel.

If you are not familiar with macros, you may wish to visit David McRitchie's
'Getting Started With Macros And User Defined Functions' at:

http://www.mvps.org/dmcritchie/excel/getstarted.htm


---
Regards,
Norman


"Shariq" wrote in message
...
I'd like to know if it is possibe to fix a certain sheet to be opened
always
on top, I mean I have (hyper)linked a worksheet with other sheets and
workbook, so when I close this book and click open again no matter which
ever
sheet was open, but it should always open a certain sheet of the book I
would
want to.





Norman Jones

To fix a sheet in MS Office to be opened first always
 
Hi Shariq,

My original suggestion stands.

Follow the previous instructions and paste the suggested code into the
ThisWorkbook module of the menu workbook. Then save and re-open the
workbook.


---
Regards,
Norman



"Shariq" wrote in message
...
Hi Norman,

Thanx 4 looking 2 my query, I M not sure if I've got my question right,
well, here it is again I'm working with several books each book containing
several sheets linked with each other, but certain book which is sort of a
main board or a menu has also some other sheets, I know if I only leave
one
sheet in this book it will automatically open this only sheet, but what do
I
have to do in order to make it work, that whenever I open this book it
should
always show that sheet having hyperlinks to other books and sheets,

I'd appreciate a lot if you could help me out with this, and shell be
waiting for your response.

Regards Shariq,


"Norman Jones" wrote:

Hi Shariq,

Try:
'=============
Private Sub Workbook_Open()
Me.Sheets("Sheet1").Activate
End Sub
'<<=============

Change Sheet1 to the sheet of interest.

This is workbook event code and should be pasted into the workbook's
ThisWorkbook module *not* a standard module or a sheet module):

Right-click the Excel icon on the worksheet
(or the icon to the left of the File menu if your workbook is maximised)
Select 'View Code' from the menu and paste the code.
Alt-F11 to return to Excel.

If you are not familiar with macros, you may wish to visit David
McRitchie's
'Getting Started With Macros And User Defined Functions' at:

http://www.mvps.org/dmcritchie/excel/getstarted.htm


---
Regards,
Norman


"Shariq" wrote in message
...
I'd like to know if it is possibe to fix a certain sheet to be opened
always
on top, I mean I have (hyper)linked a worksheet with other sheets and
workbook, so when I close this book and click open again no matter
which
ever
sheet was open, but it should always open a certain sheet of the book I
would
want to.








All times are GMT +1. The time now is 07:14 AM.

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