VBA MsgBox close button has changed...

M

madforplaid

I have been building custom forms and using regular MsgBoxes and
VBYesNo styles.

However, after testing some of the modal properties, etc., all of a
sudden my close buttons' color has changed. The close buttons for
regularly created forms and MsgBoxes look fine, but the MsgBoxes using
VBYesNo look as follows: http://www.dslextreme.com/users/madforplaid/closeButton.jpg

Please advise.

Paul
 
F

FSt1

hi
the close button may be disabled so that you can only select vbyes or vbno.

wild guess here.

regards
FSt1
 
M

madforplaid

Thanks for the reply.

I wondered that at first, but the button closes as expected.

I think I messed with a MsgBox object/property and would love to
return it to the normal red X button.

Paul
 
R

RB Smissaert

That is completely normal behaviour of the messagebox.

Sub test()

MsgBox "just testing", vbYesNo + vbQuestion, "vbYesNo + vbQuestion"

MsgBox "just testing", vbYesNoCancel + vbQuestion, "vbYesNoCancel +
vbQuestion"

End Sub


RBS
 
M

madforplaid

RBS,

Yes, I stand corrected; I checked on another system, and it behaves as
you've eluded.

I'm glad that I didn't corrupt things.

Thanks much,

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top