How do I set default a worksheet on open *without* VBA - Excel 2007 ??

insanity82007

Board Regular
Joined
Oct 10, 2007
Messages
130
I'm wondering how to set an Excel Worksheet to open on a default sheet without using VBA.

The reason why I don't want to use VBA to set a default worksheet through the workbook open event is because the worksheet I want to open with will display that macros are disabled for the user and will have a guide to enable them. If macros are disabled then obviously the workbook open event won't have worked and this default sheet will be displayed. If macros are enabled then the workbook open code will run and the code will display a different worksheet and hide the default sheet.

How do I set a default sheet/workbook structure so that every time a user opens the workbook it will be displayed this way, regardless of whether or not the user saved the workbook with a different sheet dislpayed previously?
 
I'm wondering how to set an Excel Worksheet to open on a default sheet without using VBA.

The reason why I don't want to use VBA to set a default worksheet through the workbook open event is because the worksheet I want to open with will display that macros are disabled for the user and will have a guide to enable them. If macros are disabled then obviously the workbook open event won't have worked and this default sheet will be displayed. If macros are enabled then the workbook open code will run and the code will display a different worksheet and hide the default sheet.

How do I set a default sheet/workbook structure so that every time a user opens the workbook it will be displayed this way, regardless of whether or not the user saved the workbook with a different sheet dislpayed previously?

The only way that comes to mind is to use the Workbooks_BeforeClose event to make sure that sheet is the visible and active sheet when the workbook is last saved.
 
Upvote 0
If you search the board (and elsewhere) for force user to enable macros, that's commonly part of the code.
 
Upvote 0
The only way that comes to mind is to use the Workbooks_BeforeClose event to make sure that sheet is the visible and active sheet when the workbook is last saved.

The issue with that is that it forces a save before closing and the user may not want to save
 
Upvote 0
The issue with that is that it forces a save before closing
It doesn't force a save before close; when the user initiates a save, it hides all but one sheet, then restores the view after the save. The user can close without saving.
 
Upvote 0
It doesn't force a save before close; when the user initiates a save, it hides all but one sheet, then restores the view after the save. The user can close without saving.

The code I found forced the user to save. What you've suggested is a great approach and I'll implement this. Cheers
 
Upvote 0
You're welcome. Holler back if you have problems.
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top