ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Hide the Excel screen (https://www.excelbanter.com/excel-programming/276392-hide-excel-screen.html)

tetors_2002

Hide the Excel screen
 
I need hide the excel screen, after start up the UserForm, I want show
only the UserForm.

How I do it.

tomhaddock[_4_]

Hide the Excel screen
 
Hi

A quick solution is to paste the following code replacing Userform1
with the name of your form in ThisWorkSheet.

Private Sub Workbook_Open()

Application.WindowState = xlMinimized
Load UserForm1
UserForm1.Show False

End Sub

Its does the job but you will have to see Excel start up then minimise.
Disabling ScreenUpdating won't do.

There are other ways to completely hide the Excel screen but it quite
complex (unless someone knows another way?)

Tom

Chip Pearson

Hide the Excel screen
 
You can use the Visible property to hide the main Excel window. E.g.,

Application.Visible = False


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com


"tetors_2002" wrote in message
...
I need hide the excel screen, after start up the UserForm, I want show
only the UserForm.

How I do it.




tetors_2002[_2_]

Hide the Excel screen
 
Thanks guys.


All times are GMT +1. The time now is 10:56 PM.

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