A family of Microsoft word processing software products for creating web, email, and print documents.
Forget the reference, the reference is only related for the "vbext_ws_Maximize" constant.
You said: "the line is ignored", that means that your settings trust the VBA project is set properly, otherwise you'll get an RTE 6068.
Well, your description can only mean that the line is executed and works, but not in the way that you expected. .-)
Please execute this sub:
Sub Test()
VBE.ActiveWindow.WindowState = 0
End Sub
As you see, the VBE is a multiple windows application, like Excel. With this property you can only size the window inside the VBE, not the VBE itself.
If you want to maximize the VBE itself, you must use the MainWindow object instead.
Sub Test()
VBE.MainWindow.WindowState = vbext_ws_Maximize
End Sub
Andreas.