Bold fonting a msgbox.

countryfan_nt

Well-known Member
Joined
May 19, 2004
Messages
758
Hello friends,

This should be easy, I am trying to bold the msgbox font.
Please help me,
Thanks,
Nawaf


Code:
Sub WORKBOOK_OPEN()
If Sheets("DAY OFF").Range("W4") <> Year(Now()) Then
MsgBox ("You Need To Place The Current Year In Cell W4!")

End If
End Sub
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Two comments.

(1) AFAIK, you cannot change the font characteristics of the msgbox on the fly.

(2) If you know the cell is supposed to contain the current year, why not put it there? The same code that asks the customer to do it could itself do the needful!
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,293
Members
449,077
Latest member
Rkmenon

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