Change font of Msg Box displayed

RAJESH1960

Banned for repeated rules violations
Joined
Mar 26, 2020
Messages
2,313
Office Version
  1. 2019
Platform
  1. Windows
Hello guys
When I run the code, a message box is displayed. Is it possible to change the font (size / Bold/ color) of the message displayed in a message box.? If so please share an example.
 
Yes. it is showing an error at the same line once again.
 
Upvote 0

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
After commenting '.Font = ArialBlack and End if, it is working.
 
Upvote 0
You can make that setting in the properties window if you want to set it that way.
 
Upvote 0
Untitled.png
You mean select any from this list in properties.
 
Upvote 0
You have to be under the LabelMessage section & then select Font
 
Upvote 0
Right now you are under the Form_MessageBox section.
 
Upvote 0
Got it.
So, in short, the code was making the changes in the properties before. Only thing is I have to do it manually if it shows an error.
Now both the message boxes are working fine.
 
Upvote 0
Yes. The code is making those 'manual' changes for you. If the code is not working, you can still do it manually.
 
Upvote 0
Be advised, the code settings will override any manual settings you have. ;)
 
Upvote 0

Forum statistics

Threads
1,215,338
Messages
6,124,346
Members
449,155
Latest member
ravioli44

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