Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Msgbox Close Button

The X in the top right corner of a message box is not colored red
and there would be no normal reason to remove it.

The "Critical" notice on a message box ( a red X) is created by the
inclusion of the constant "vbCritical" as one of the msgbox arguments.
You can simply remove it or replace it with vbInformation or vbExclamation.
As an example, try both code lines below:

x = MsgBox("This is a test", vbOKCancel + vbCritical, " Test of X")
'---
x = MsgBox("This is a test", vbOKCancel , " Test of X")

'--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"jnf40"
wrote in message
Is there a way to disable the red X on a Msgbox, or would you have to create
a custom userform to do this?
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Close msgbox ? Buddy Lee Excel Programming 3 November 22nd 05 04:14 PM
Excel shoud not close all active books when clicking close button technomike Excel Discussion (Misc queries) 0 June 10th 05 05:35 PM
excel - Windows close button (x) should only close active workboo. CoffeeAdict Setting up and Configuration of Excel 3 February 8th 05 04:30 AM
Close a MsgBox Taffy[_2_] Excel Programming 6 October 4th 04 09:39 PM
auto close while MsgBox is open Kevin Excel Programming 2 November 10th 03 12:36 AM


All times are GMT +1. The time now is 07:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"