Closing Form Creates Blank Instances of Excel

KB_Miner

Board Regular
Joined
Dec 5, 2013
Messages
119
I have a user form that automatically opens when the workbook is opened, and it uses Application.Visible = False to hide the workbook during form entry. I want to make the workbook visible again through a command button, but while Excel does become Visible, it also opens 2 blank instances of Excel that I have to use Task Manager to close. I've been trying to troubleshoot it, but not sure how it's opening the other instances. Here's my code for the command button to make Excel visible again:

VBA Code:
Private Sub cmdSupervisor_Click()
Application.Visible = True
Unload Me
End Sub
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
May be something on my computer. When I run the form on a different computer, there's no issues with the blank instances.
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,836
Members
449,096
Latest member
Erald

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