VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Close all windows in Visual Basic Editor. Start new AddIn Project and paste following code in frmAd

by Gabriel (3 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 4th April 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Close all windows in Visual Basic Editor. Start new AddIn Project and paste following code in frmAddIn.frm.

Rate Close all windows in Visual Basic Editor. Start new AddIn Project and paste following code in frmAd



Public VBInstance As VBIDE.VBE
Public Connect As Connect
Private Sub Form_Load()
    Dim w As Window
    For Each w In VBInstance.Windows
        If (w.Type = vbext_wt_CodeWindow Or vbext_wt_Designer) _
            And w.Type <> vbext_wt_ProjectWindow And w.Type <> vbext_wt_PropertyWindow And w.Type <> vbext_wt_ToolWindow Then
                w.Close
        End If
    Next
    Unload Me
End Sub

Download this snippet    Add to My Saved Code

Close all windows in Visual Basic Editor. Start new AddIn Project and paste following code in frmAd Comments

No comments have been posted about Close all windows in Visual Basic Editor. Start new AddIn Project and paste following code in frmAd. Why not be the first to post a comment about Close all windows in Visual Basic Editor. Start new AddIn Project and paste following code in frmAd.

Post your comment

Subject:
Message:
0/1000 characters