Bold text in MsgBox

The Idea Dude

Well-known Member
Joined
Aug 15, 2002
Messages
591
Office Version
  1. 2016
Platform
  1. Windows
Is there any way to set some (not all) of the text to bold when using the MsgBox in VBA?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Partial formatting is not possible as far as I know, at least not without extensive API that would be more trouble than what a simple userform is worth. You can change the Windows system setting to font type, size, bold, etc, but that would still affect the entire font structure in all message boxes.
 
Upvote 0
If you mean to have VBA manipulate a message box so it displays more than one font on the same message box, like I said, it cannot be done. It'd be a Windows setting which means API, not VBA, the code for which I have not seen, and if it's do-able (which maybe it is using API), it wouldn't be worth the effort. A userform would be a better bet, much easier to use a label control for each font style, making it pretty much zero on the VBA challenge scale.
 
Upvote 0
Yeah, message boxes are just very basic. If you want anything more then displaying a simple message with and ok button or yes/no then you need a userform which can do practically anything you want.
 
Upvote 0

Forum statistics

Threads
1,224,194
Messages
6,177,063
Members
452,758
Latest member
Oshia

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