Tanushri_Kothari
New Member
Hi, I have designed a userform in Excel 2007. I am using below code to hide only current workbook and to display userform1. It functions pretty well but the problem is, those workbooks which are already open on my desktop, those display on windows taskbar but if I click on them, nothing happens, only userform shows up. How can I just hide current workbook and allow to work on other pre-opened workbooks?
Private Sub Workbook_Open()
Windows(ThisWorkbook.Name).Visible = False
UserForm1.Show
End Sub
Private Sub Workbook_Open()
Windows(ThisWorkbook.Name).Visible = False
UserForm1.Show
End Sub