Formatting message boxes

stemar

Board Regular
Joined
Mar 16, 2002
Messages
248
Is there a way to get bold or italic text in a message box?

I want it to look something like this:

If you do this you must do that

Thanks in advance
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Sorry, but you can't apply rich text formatting in a standard MsgBox, nor in a UserForm Label control. You could use 3 Label controls on a UserForm.
 
Upvote 0
hmmm I don't think you can using a standard msgbox

You could, however, make your own userform version of a msgbox, and have a sub procedure that calls it. You could then use any way of representing emboldened text you wish - for example you may wish to pass an optional argument stating the word you wish to be bolded. In your function, you would then have to set a control so that it would bold the supplied text.

Now I come to think of it, I believe you have to have the same typeface applied to all text within one label - though I may be wrong about that. If that is the case, it may not be so trivial to place bold text within standard text on a form
 
Upvote 0
Dominic, that takes you to a page that says this:

The topic or post you requested does not exist
 
Upvote 0
Thanks for that HOTPEPPER

Dominic, that takes you to a page that says this:
The topic or post you requested does not exist:

Not any more.

DominicB
 
Upvote 0

Forum statistics

Threads
1,213,531
Messages
6,114,172
Members
448,554
Latest member
Gleisner2

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