View Full Version : VBIDE Window existence/visibility

Howard Kaikow
10-05-2004, 02:32 AM
In another forum, I've noticed that some seem to want to know how to detect the existence/visibility of the VBIDE window, so here's how.

Option Explicit
Public Sub CheckVBEWindowState()
Dim strBuffer As String
With Application.VBE.MainWindow
Select Case .WindowState
Case vbext_ws_Maximize
strBuffer = "VBE window state is maximize"
Case vbext_ws_Minimize
strBuffer = "VBE window state is minimize"
Case vbext_ws_Normal
strBuffer = "VBE window state is normal (window has not been opened)"
End Select
strBuffer = strBuffer & vbCrLf & "and window is " & IIf(.Visible, "", "not ") & "visible."
End With
MsgBox strBuffer
End Sub

Jacob Hilderbrand
10-05-2004, 03:02 AM
Can you make a kb entry on this?

Howard Kaikow
10-05-2004, 03:12 AM
Can you make a kb entry on this?
I'll try.
Never done it bee4.

Jacob Hilderbrand
10-05-2004, 03:20 AM
Let me know if you need any help.