Hide all worksheets until userform is displayed?

GJW

New Member
Joined
Oct 8, 2002
Messages
1
In a workbook_open sub I do some tasks and then have frmOpening.Show.
What happens is a worksheet Sheet1 (that I want to display later by clicking buttons on the opening userform) shows before the frmOpening user form displays.
This is very distracting for the user and looks unprofessional.
I would be grateful for any suggestions.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
You can minimise the workbook in your Workbook_Open event procedure like this:

Code:
'   Minimise all open workbooks
    For Each Window In Windows
        On Error Resume Next
        Window.WindowState = xlMinimized
        On Error GoTo 0
    Next Window
'   Activate this workbook (minimising activates next open workbook)
    ThisWorkBook.Activate

But even then there will be a short interval when the sheet is displayed.

I find the best solution is to create a blank sheet, turn off gridlines and row and column headers etc, adjust the height of row 1 and the width of column A so that cell A1 is very small and place the cellpointer there. Then make sure that this is always the active sheet when the workbook is saved.
 
Upvote 0

Forum statistics

Threads
1,203,756
Messages
6,057,161
Members
444,908
Latest member
Jayrey

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