Sharid
Well-known Member
- Joined
- Apr 22, 2007
- Messages
- 1,064
- Office Version
- 2016
- Platform
- Windows
Hi
I want to keep a workbook called "Test"minimised. Only the userform will show, the user will use a command button on the userform to exit and close the form and workbook.
However I am having the following problems.
Thanks for having a look
I want to keep a workbook called "Test"minimised. Only the userform will show, the user will use a command button on the userform to exit and close the form and workbook.
However I am having the following problems.
- On open it minimise and shows the userform3, however if i click the excel icon in the task bar it opens, this should not happen.
- When I re-minimise the workbook it hide the user form, this should not happen
- If I open another workbook, with this one workbook opened, the the user can see the minimised "Test" workbook. this should not happen.
VBA Code:
Private Sub Workbook_Open()
Application.WindowState = xlMinimized
UserForm3.Show modeless
End Sub
Thanks for having a look