Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Font in MsgBox?

I know there no way to directly change the font used in a MsgBox, but I
figure there might be a workaround?

Someway of reading the font currently being used (some system setting?)
Then set a new font, and show MsgBox.
And, finally set the system font back...

But, which font is used in the MsgBox???
Where to find it?
Maybe someone even know where to change it?


PS: The font I want to use it "Lucida Console", if that helps...


TIA,

CE




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Font in MsgBox?

Charlotte,


Use a userform for your message box and you can control everything.

Mike

"Charlotte E." wrote:

I know there no way to directly change the font used in a MsgBox, but I
figure there might be a workaround?

Someway of reading the font currently being used (some system setting?)
Then set a new font, and show MsgBox.
And, finally set the system font back...

But, which font is used in the MsgBox???
Where to find it?
Maybe someone even know where to change it?


PS: The font I want to use it "Lucida Console", if that helps...


TIA,

CE





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Font in MsgBox?

To change the font in a Message Box would require getting into Microsoft
source code and that is not a simple workaround. Mike's suggestion is the
best. Put a label on a UserForm and you can make it do whatever you want.

"Charlotte E." wrote:

I know there no way to directly change the font used in a MsgBox, but I
figure there might be a workaround?

Someway of reading the font currently being used (some system setting?)
Then set a new font, and show MsgBox.
And, finally set the system font back...

But, which font is used in the MsgBox???
Where to find it?
Maybe someone even know where to change it?


PS: The font I want to use it "Lucida Console", if that helps...


TIA,

CE





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Font in MsgBox?


"But, which font is used in the MsgBox???
Where to find it?
Maybe someone even know where to change it?"
'--
Right-click the desktop (windows XP)
Appearance tab
Advanced button
Item dropdown
--
Jim Cone
Portland, Oregon USA
PS: I don't like your font choice <g




"Charlotte E."
<@ wrote in message
I know there no way to directly change the font used in a MsgBox, but I
figure there might be a workaround?
Someway of reading the font currently being used (some system setting?)
Then set a new font, and show MsgBox.
And, finally set the system font back...
But, which font is used in the MsgBox???
Where to find it?
Maybe someone even know where to change it?
PS: The font I want to use it "Lucida Console", if that helps...
TIA,
CE
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Font in MsgBox?

True, but that changes ALL Message Boxes, not just the one in that procedure.

"James Cone" wrote:


"But, which font is used in the MsgBox???
Where to find it?
Maybe someone even know where to change it?"
'--
Right-click the desktop (windows XP)
Appearance tab
Advanced button
Item dropdown
--
Jim Cone
Portland, Oregon USA
PS: I don't like your font choice <g




"Charlotte E."
<@ wrote in message
I know there no way to directly change the font used in a MsgBox, but I
figure there might be a workaround?
Someway of reading the font currently being used (some system setting?)
Then set a new font, and show MsgBox.
And, finally set the system font back...
But, which font is used in the MsgBox???
Where to find it?
Maybe someone even know where to change it?
PS: The font I want to use it "Lucida Console", if that helps...
TIA,
CE



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Font in MsgBox?

Yeps, but as stated, I just wanted to change the font temporary, since I
figured it was a system setting....

Yeps, a userform could do the trick, but if is just some quick feedback, I
really think a userform is shooting birds with a cannon :-)

Unfortunately MsgBox cannot really allign feedback, unless you use a fixed
width font, like Lucida Console.

But, temporary changing the font probably need an API function?
And, I'm not really into that part of programming.... :-(

Can anyone help?


TIA,


CE



JLGWhiz wrote:
True, but that changes ALL Message Boxes, not just the one in that
procedure.

"James Cone" wrote:


"But, which font is used in the MsgBox???
Where to find it?
Maybe someone even know where to change it?"
'--
Right-click the desktop (windows XP)
Appearance tab
Advanced button
Item dropdown
--
Jim Cone
Portland, Oregon USA
PS: I don't like your font choice <g




"Charlotte E."
<@ wrote in message
I know there no way to directly change the font used in a MsgBox,
but I figure there might be a workaround?
Someway of reading the font currently being used (some system
setting?) Then set a new font, and show MsgBox.
And, finally set the system font back...
But, which font is used in the MsgBox???
Where to find it?
Maybe someone even know where to change it?
PS: The font I want to use it "Lucida Console", if that helps...
TIA,
CE



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Font in MsgBox?

I have checked other forums and here is one answer that smmarizes most of the
others.

You simply can not.... not without changing the stardard font of windows. A
msgbox is a modal window that uses the stardard windows system font. Period.
I've tried everything known to man to change the font of a msgbox, and it
boils down to having to recode. For the future, something that may save you a
headache, would be to make a normal form, and do the formname.show vbmodal,
and have a label and a button on it. Then, use this form as your msgbox
whenever you need one. This would prevent this problem from happening in the
future. I hate to say it though, but you can't change the font of the msgbox.


"Charlotte E." wrote:

Yeps, but as stated, I just wanted to change the font temporary, since I
figured it was a system setting....

Yeps, a userform could do the trick, but if is just some quick feedback, I
really think a userform is shooting birds with a cannon :-)

Unfortunately MsgBox cannot really allign feedback, unless you use a fixed
width font, like Lucida Console.

But, temporary changing the font probably need an API function?
And, I'm not really into that part of programming.... :-(

Can anyone help?


TIA,


CE



JLGWhiz wrote:
True, but that changes ALL Message Boxes, not just the one in that
procedure.

"James Cone" wrote:


"But, which font is used in the MsgBox???
Where to find it?
Maybe someone even know where to change it?"
'--
Right-click the desktop (windows XP)
Appearance tab
Advanced button
Item dropdown
--
Jim Cone
Portland, Oregon USA
PS: I don't like your font choice <g




"Charlotte E."
<@ wrote in message
I know there no way to directly change the font used in a MsgBox,
but I figure there might be a workaround?
Someway of reading the font currently being used (some system
setting?) Then set a new font, and show MsgBox.
And, finally set the system font back...
But, which font is used in the MsgBox???
Where to find it?
Maybe someone even know where to change it?
PS: The font I want to use it "Lucida Console", if that helps...
TIA,
CE




  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Font in MsgBox?

If all you are looking to do is to align text use vbTab to align the text...

msgBox "This" & vbtab & "1234" & vbcrlf & "Thing" & vbtab & "456"
--
HTH...

Jim Thomlinson


"Charlotte E." wrote:

Yeps, but as stated, I just wanted to change the font temporary, since I
figured it was a system setting....

Yeps, a userform could do the trick, but if is just some quick feedback, I
really think a userform is shooting birds with a cannon :-)

Unfortunately MsgBox cannot really allign feedback, unless you use a fixed
width font, like Lucida Console.

But, temporary changing the font probably need an API function?
And, I'm not really into that part of programming.... :-(

Can anyone help?


TIA,


CE



JLGWhiz wrote:
True, but that changes ALL Message Boxes, not just the one in that
procedure.

"James Cone" wrote:


"But, which font is used in the MsgBox???
Where to find it?
Maybe someone even know where to change it?"
'--
Right-click the desktop (windows XP)
Appearance tab
Advanced button
Item dropdown
--
Jim Cone
Portland, Oregon USA
PS: I don't like your font choice <g




"Charlotte E."
<@ wrote in message
I know there no way to directly change the font used in a MsgBox,
but I figure there might be a workaround?
Someway of reading the font currently being used (some system
setting?) Then set a new font, and show MsgBox.
And, finally set the system font back...
But, which font is used in the MsgBox???
Where to find it?
Maybe someone even know where to change it?
PS: The font I want to use it "Lucida Console", if that helps...
TIA,
CE




  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Font in MsgBox?

Thanks - this gives me something to work on :-)


Jim Thomlinson wrote:
If all you are looking to do is to align text use vbTab to align the
text...

msgBox "This" & vbtab & "1234" & vbcrlf & "Thing" & vbtab & "456"

Yeps, but as stated, I just wanted to change the font temporary,
since I figured it was a system setting....

Yeps, a userform could do the trick, but if is just some quick
feedback, I really think a userform is shooting birds with a cannon
:-)

Unfortunately MsgBox cannot really allign feedback, unless you use a
fixed width font, like Lucida Console.

But, temporary changing the font probably need an API function?
And, I'm not really into that part of programming.... :-(

Can anyone help?


TIA,


CE



JLGWhiz wrote:
True, but that changes ALL Message Boxes, not just the one in that
procedure.

"James Cone" wrote:


"But, which font is used in the MsgBox???
Where to find it?
Maybe someone even know where to change it?"
'--
Right-click the desktop (windows XP)
Appearance tab
Advanced button
Item dropdown
--
Jim Cone
Portland, Oregon USA
PS: I don't like your font choice <g




"Charlotte E."
<@ wrote in message
I know there no way to directly change the font used in a MsgBox,
but I figure there might be a workaround?
Someway of reading the font currently being used (some system
setting?) Then set a new font, and show MsgBox.
And, finally set the system font back...
But, which font is used in the MsgBox???
Where to find it?
Maybe someone even know where to change it?
PS: The font I want to use it "Lucida Console", if that helps...
TIA,
CE



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change font size in Msgbox or Inputbox Excelerate-nl Excel Programming 2 May 11th 06 12:08 PM
how do i change font size in msgbox pete the greek Excel Programming 1 June 8th 05 01:47 PM
MsgBox Font Size change Robert Christie[_3_] Excel Programming 3 January 28th 05 01:51 PM
MsgBox Font He4Giv Excel Programming 1 January 6th 05 04:58 AM
Specify font for MsgBox display? shockley Excel Programming 1 September 11th 03 01:50 PM


All times are GMT +1. The time now is 06:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"