Form Hiding on own, weird Problem

Kavy

Well-known Member
Joined
Jun 25, 2007
Messages
607
Hello, Weird Question
I am useing a user Form

On the Form which I call my main menu, theres a help button, with this code

Code:
Private Sub cmdHelp_Click()
MsgBox ("Help file not ready yet, good luck on your own, Have a Nice Day!")
End Sub

For some reason when this is click, and after the user clicks ok on the msgbox, the frmmain, which this command is on, minimizes itself

Anyone know why?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hello, eh. :)

I can't replicate this in Excel XP simply by calling a MsgBox from a Button-click Event.

Do you possibly have Form Activate or Deactivate Event that could be causing this?
 
Upvote 0
no i don't which is whats confusing me, eh, it weird... makes no sense

But Now i can't replicate the event either, So i guess dead end.... kinda scary though

Anyway thanks for your response!
 
Upvote 0
You know what I can replicate?

If you hit the Stop button in the VBE, for some reason, with the Form open, that would kill the form. In this instance you terminated the Form from memory... I wonder if you something along these lines... :)
 
Upvote 0
hmm i don't know, it seems to happen everytime when i click the command, or none of the times, like when my frmmain loads, either it will happen or it won't, its really weird.
But it doesn't stop, if you hit alt-tab after it happens it goes back to the form and u can hit commands and contine on ur way!
I am lost
 
Upvote 0
I take that back, this last time it only happened till i clicked another command and then it didn't happen anymore. It seems to be almost patternless
 
Upvote 0
Hello again,

How do you show/load the Form? Hopefully with both, e.g.,

Code:
Sub foo()
Load UserForm1: UserForm1.Show
End Sub
I usually use both, just to be sure... Same deal when I get rid of them. :)
 
Upvote 0

Forum statistics

Threads
1,214,594
Messages
6,120,436
Members
448,964
Latest member
Danni317

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