PC Review


Reply
Thread Tools Rate Thread

Bold the font in a message

 
 
=?Utf-8?B?QWNjZXNzSGVscA==?=
Guest
Posts: n/a
 
      15th Oct 2007
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 With Quote
 
 
 
 
=?Utf-8?B?TmlnZWwgUlM=?=
Guest
Posts: n/a
 
      15th Oct 2007
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 With Quote
 
=?Utf-8?B?QWNjZXNzSGVscA==?=
Guest
Posts: n/a
 
      15th Oct 2007
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 With Quote
 
=?Utf-8?B?TmlnZWwgUlM=?=
Guest
Posts: n/a
 
      15th Oct 2007
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 With Quote
 
=?Utf-8?B?QWNjZXNzSGVscA==?=
Guest
Posts: n/a
 
      15th Oct 2007
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Font Issue - label font turns bold Gina Whipp Microsoft Access Forms 4 21st Nov 2009 05:08 AM
How do I change a new incoming message to a bold font? =?Utf-8?B?TWFyeWx5bm5l?= Microsoft Outlook Discussion 0 4th Jan 2005 04:31 PM
Bold font set at system font Greg Windows XP General 1 16th Apr 2004 07:11 AM
Re: font bold Herfried K. Wagner [MVP] Microsoft VB .NET 0 29th Oct 2003 08:58 PM
user select font, font size, bold, etc Eric Microsoft Access Forms 3 31st Aug 2003 02:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:59 PM.