ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA MsgBox close button has changed... (https://www.excelbanter.com/excel-programming/431302-vba-msgbox-close-button-has-changed.html)

[email protected]

VBA MsgBox close button has changed...
 
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/madf...loseButton.jpg

Please advise.

Paul

FSt1

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

wild guess here.

regards
FSt1

" wrote:

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/madf...loseButton.jpg

Please advise.

Paul


[email protected]

VBA MsgBox close button has changed...
 
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


On Jul 18, 8:16*pm, FSt1 wrote:
hi
the close button may be disabled so that you can only select vbyes or vbno.

wild guess here.

regards
FSt1



" wrote:
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/madf...loseButton.jpg


Please advise.


Paul- Hide quoted text -


- Show quoted text -



RB Smissaert

VBA MsgBox close button has changed...
 
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


wrote in message
...
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/madf...loseButton.jpg

Please advise.

Paul



[email protected]

VBA MsgBox close button has changed...
 
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

On Jul 18, 10:02*pm, "RB Smissaert"
wrote:
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

wrote in message

...



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 myclosebuttons' color has changed. *Theclosebuttons for
regularly created forms and MsgBoxes look fine, but the MsgBoxes using
VBYesNo look as follows:
http://www.dslextreme.com/users/madf...loseButton.jpg


Please advise.


Paul- Hide quoted text -


- Show quoted text -




All times are GMT +1. The time now is 10:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com