MajesticCamel
New Member
- Joined
- Jan 19, 2022
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
Hello All,
I have searched online for this issue but couldn't find a proper solution.
I have a userform that open (while the workbook itself remains hidden) using the following code:
I first used only Application.Visible = False to hide the workbook but as that was hiding other workbooks, it created issues. Thus the code above.
Now the issue I am having is if the user form is open and the user opens a new Excel workbook, it will not show as Application.Visible = False was already done.
I tried also without the Application.Visible = False but the problem will be the Excel windows will show 'Empty' when using only the user form and no other workbook is open.
Is there any code or function that allows me to make the application visible once another workbook is opened.
Thanks.
I have searched online for this issue but couldn't find a proper solution.
I have a userform that open (while the workbook itself remains hidden) using the following code:
VBA Code:
ThisWorkbook.Windows(1).Visible = False
If Workbooks.Count = 1 Then
Application.Visible = False
End If
UserForm1.Show
I first used only Application.Visible = False to hide the workbook but as that was hiding other workbooks, it created issues. Thus the code above.
Now the issue I am having is if the user form is open and the user opens a new Excel workbook, it will not show as Application.Visible = False was already done.
I tried also without the Application.Visible = False but the problem will be the Excel windows will show 'Empty' when using only the user form and no other workbook is open.
Is there any code or function that allows me to make the application visible once another workbook is opened.
Thanks.