用macros打开VBA窗口

我目前正在使用自己的用户界面在excel中使用vba工具。 Usualy我不需要使用VBA窗口。

但有时我想打开VBA窗口进行一些更改而不closures用户界面(Alt + F11在这一点上不起作用)。 所以我正在考虑一个打开VBA窗口的button。 有没有打开它的命令?

提前致谢!

这是我一直使用的东西。

此代码已被“调整”我的笔记本电脑屏幕的大小。 运行它同时打开VBE窗口和应用程序窗口:

Sub dual() Dim h As Long With Application .WindowState = xlMaximized x = Application.ActiveWindow.Width \ 2 h = Application.ActiveWindow.Height .WindowState = xlNormal .Left = 545 .Height = 550 .Width = x * 0.9 .Top = 0 With .VBE.MainWindow .Width = 1.4 * x .Left = 0 .Top = 0 .Height = 740 .WindowState = vbext_ws_Normal End With End With End Sub