ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Hide excel, display userform only (https://www.excelbanter.com/excel-programming/340787-hide-excel-display-userform-only.html)

carlito_1985[_7_]

Hide excel, display userform only
 

Hi everyone.
Is it possible that when you load a workbook, it hides everything
except for userform1?

The thing is it looks a bit silly with userform 1 loading up and having
excel with the toolbars etc behind it. One thing i did do was make it so
before the userform loaded, it shrunk excel to the smallest size
possible and positioned it behind the userform. But when you use
userform1 and click on "go" it runs a macro which hides userform1, then
has to maximize the window and then display sheet2 which also looks a
bit silly.

Any ideas?

Thanks,
Andy


--
carlito_1985
------------------------------------------------------------------------
carlito_1985's Profile: http://www.excelforum.com/member.php...o&userid=21390
View this thread: http://www.excelforum.com/showthread...hreadid=469761


Bob Phillips[_6_]

Hide excel, display userform only
 
Andy,

Add this code to your userform


Private Sub UserForm_Activate()
Application.Visible = False
End Sub

Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
Application.Visible = True
End Sub



--
HTH

Bob Phillips

"carlito_1985"
wrote in message
news:carlito_1985.1vqpmd_1127358310.6544@excelforu m-nospam.com...

Hi everyone.
Is it possible that when you load a workbook, it hides everything
except for userform1?

The thing is it looks a bit silly with userform 1 loading up and having
excel with the toolbars etc behind it. One thing i did do was make it so
before the userform loaded, it shrunk excel to the smallest size
possible and positioned it behind the userform. But when you use
userform1 and click on "go" it runs a macro which hides userform1, then
has to maximize the window and then display sheet2 which also looks a
bit silly.

Any ideas?

Thanks,
Andy


--
carlito_1985
------------------------------------------------------------------------
carlito_1985's Profile:

http://www.excelforum.com/member.php...o&userid=21390
View this thread: http://www.excelforum.com/showthread...hreadid=469761





All times are GMT +1. The time now is 05:16 PM.

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