Application.Visible function & Userform

nadzri

New Member
Joined
Oct 4, 2005
Messages
38
Hi all,

Im using Application.Visible function to hide the workbook and only shows the userform.

Private Sub Workbook_Open()
Application.Visible = False
UserForm1.Show
End Sub

Problem arises when:

if there is an active excel file when this particular workbook with Application.Visible function is open, the active excel file will be hidden as well. Is there a way to specify the funtion is only to a particular workbook only?

Normally when I have an active userform, i cant open any excel file unless I exit the userform. Is it possible to allow an excel file to be open while having an active userform?

Cheers...
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Is this what you want?

Code:
Private Sub Workbook_Open()
    ActiveWindow.WindowState = xlMinimized
    UserForm1.Show
End Sub
 
Upvote 0
Hi Andrew,

Im afraid not. I have a workbook that automatically hide the excel function and only display the userform. But when I open this workbook any other excel file that is running will be hidden as well. is it possible to hide the application just to a specific workbook?
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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