Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Bold the font in a message
Good morning,
I want to bold and italic the name of active workbook in a message below. Please help. Msgbox "I am running this macro in workbook '" & ActiveWorkbook.Name & "." How can I make the "ActiveWorkbook.Name" to bold and italic? Thanks. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Bold the font in a message
You have no control over the MsgBox, so you cannot selectively change the
font. You would need to create a userform to do that. Cheers Nigel "AccessHelp" wrote: Good morning, I want to bold and italic the name of active workbook in a message below. Please help. Msgbox "I am running this macro in workbook '" & ActiveWorkbook.Name & "." How can I make the "ActiveWorkbook.Name" to bold and italic? Thanks. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Bold the font in a message
Hi Nigel,
Thanks for your response. So what you are saying is I have to create a form to message the users, instead of using "Msgbox"? Thanks. "Nigel RS" wrote: You have no control over the MsgBox, so you cannot selectively change the font. You would need to create a userform to do that. Cheers Nigel "AccessHelp" wrote: Good morning, I want to bold and italic the name of active workbook in a message below. Please help. Msgbox "I am running this macro in workbook '" & ActiveWorkbook.Name & "." How can I make the "ActiveWorkbook.Name" to bold and italic? Thanks. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Bold the font in a message
That is correct, if you want to manipulate the font of your message.
You might find the following a simpler way of emphasising the message, without changing the font by inserting a space between the message and the file name? Also consider change the MsgBox title? Msgbox "I am running this macro in workbook" & vbcrlf & vbcrlf & ActiveWorkbook.Name & "." "AccessHelp" wrote: Hi Nigel, Thanks for your response. So what you are saying is I have to create a form to message the users, instead of using "Msgbox"? Thanks. "Nigel RS" wrote: You have no control over the MsgBox, so you cannot selectively change the font. You would need to create a userform to do that. Cheers Nigel "AccessHelp" wrote: Good morning, I want to bold and italic the name of active workbook in a message below. Please help. Msgbox "I am running this macro in workbook '" & ActiveWorkbook.Name & "." How can I make the "ActiveWorkbook.Name" to bold and italic? Thanks. |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Bold the font in a message
Thanks for additional information.
"Nigel RS" wrote: That is correct, if you want to manipulate the font of your message. You might find the following a simpler way of emphasising the message, without changing the font by inserting a space between the message and the file name? Also consider change the MsgBox title? Msgbox "I am running this macro in workbook" & vbcrlf & vbcrlf & ActiveWorkbook.Name & "." "AccessHelp" wrote: Hi Nigel, Thanks for your response. So what you are saying is I have to create a form to message the users, instead of using "Msgbox"? Thanks. "Nigel RS" wrote: You have no control over the MsgBox, so you cannot selectively change the font. You would need to create a userform to do that. Cheers Nigel "AccessHelp" wrote: Good morning, I want to bold and italic the name of active workbook in a message below. Please help. Msgbox "I am running this macro in workbook '" & ActiveWorkbook.Name & "." How can I make the "ActiveWorkbook.Name" to bold and italic? Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Bold Font | Excel Discussion (Misc queries) | |||
Bold font if statement | Excel Worksheet Functions | |||
Bold Font question | Excel Discussion (Misc queries) | |||
Bold Font | Excel Programming | |||
Add bold font to Totals row? | Excel Programming |