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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Is this what you want?

Code:
Private Sub Workbook_Open()
    ActiveWindow.WindowState = xlMinimized
    UserForm1.Show
End Sub
 

nadzri

New Member
Joined
Oct 4, 2005
Messages
38
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?
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,871
Messages
5,834,145
Members
430,261
Latest member
quangtinator

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
Top