Suppress the Excel opening splash screen

DaveSp

Board Regular
Joined
Apr 9, 2012
Messages
50
Good day all.

I had VBA code that displays a userform upon opening Excel (ThisWorkbook) code below.

When I start Excel, the Excel splash screen displays, then the workbook displays momentarily and then minimizes before the userform is displayed.

Is there a way to suppress the display of the Excel splash screen and the initial display of the workbook so that the first and only thing the user sees is the userform?

I've search the forum and see a number of post on splash screens but none that discuss suppressing the opening Excel splash. I'd appreciate any help you all can provide.

Thanks.

Code:
Private Sub Workbook_Open()
'   Hide Excel and display the userform
    Application.ScreenUpdating = False
    Application.WindowState = xlMinimized
    Application.Visible = False
    UserForm4.Show Modal
    Call ValidateUser
End Sub
 
What if it is a Macro Enabled File. when I tried this I got an error
"C:\LARL EXTREME CLEANING\TOOLS\LARL MAIN MENU.xlsm" this is the path I put in there

View attachment 33729
It looks from the error screen that you are passing the wrong excel file name because you are putting the string between the html tags.

Replace this :
Set Wb = XlApp.Workbooks.Open("[ B]C:\LARL EXTREME CLEANING\TOOLS\LARL MAIN MENU.xlsm[ /B]")

With this:
Set Wb = XlApp.Workbooks.Open("C:\LARL EXTREME CLEANING\TOOLS\LARL MAIN MENU.xlsm")
 
Upvote 0

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

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