• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Excel VBA : windows(thisworkbook.name).visible = false

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
 
Back
Top