Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display or hide control characters in Excel 2007 schackbo Excel Discussion (Misc queries) 1 December 16th 09 04:06 PM
display status bar value in excel userform? Al B Excel Discussion (Misc queries) 0 November 15th 06 01:21 PM
Automate display/ hide rows in excel based on yes/no check box schraplau Excel Discussion (Misc queries) 0 April 25th 06 07:48 PM
Hide Userform smokiibear Excel Programming 4 January 18th 05 06:54 PM
hide and restore personal display settings in excel menu Mark[_17_] Excel Programming 0 February 20th 04 07:22 AM


All times are GMT +1. The time now is 06:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"