Visual Basic Editor Window Opens Automatically

mikechambers

Active Member
Joined
Apr 27, 2006
Messages
397
Recently, I have noticed that my VBA editor window will automatically open
when unlocking my computer. I am running XP, with Office 2003. I unlock my
Windows using Ctrl-Alt-Delete, and type in my password. Then a VBA window
pops up. I have done some troubleshooting and here's what have found.

If I open a fresh session of Excel, lock my computer, unlock it, I get no
editor window pop up. But if I physically go into the editor, then close the
editor, lock/unlock my computer, then it will start popping up. Same with
Outlook. If I hav an Outlook session open which I have been in the editor at
one point since that session has been open, then I will get a pop up after
unlocking my computer. I will get a editor pop up window for each case. In
other words, one will pop up for Outlook, another for Excel, and for each
separate session of Excel (if I have manually opened the editor during that
sesssion at some point). So some times, I will have 3 or 4 editor pop ups
after unlocking my computer, and I have to close them all.

Now I also have a laptop, running on the same network, XP and 2003 Office,
and I cannot duplicate this issue. Nothing has changed on either to my
knowledge, but I don't even know where to begin checking for differences. Any
ideas???

Thanks!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
This is a common bug, no real solution. But I think it only happens if the VBA window is MAXIMIZED. If you unmaximize the vba window, and manually drag the window borders to the size you like, it won't happn anymore.
 
Upvote 0
Wow! That fixed it. And I noticed on my laptop, my window wasn't maximized. As soon as I maximzed it on my laptop, it started doing the same thing. THANKS!
 
Upvote 0
No problem, it's a very strange bug indeed. But it is documented on Microsoft's support site. I have no idea what the window being maximized has to do with the Locking/Unlocking of the PC.
 
Upvote 0
I encountered the same problem, and this solution worked for me too. Thanks!
 
Upvote 0
Interesting bug. :)
Both bug and solution work on any VBA instance (outlook, excel, word,...).
Also resizing application bar causes the popup.
I have a double monitor, does it happen also on single monitors?
 
Upvote 0
I noticed that if I close Excel with the VB window maximized, a Microsoft Excel instance is "still alive" as shown in Task Manager as a background process. If I kill that instance it stops the behavior.
I also found that if I have the preview pane open in Windows Explorer that clicking an a .xlsx file (which is then previewed) will trigger the VB window to open.
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,823
Members
449,049
Latest member
cybersurfer5000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top