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.
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
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.