Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default Specify font for MsgBox display?

I want a msgBox to have a non-proportional font so that I can set up evenly
spaced columns of text. Excel 97/vb Help says I can do this but it doesn't
say how??

Related question: Is it possible to get the length (in inches, for example)
of a string of characters? Seems like you should be able to add up the
lengths of each character in a string to get the length of the string but I
can't find the right properties to do this.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default Specify font for MsgBox display?

1. The font is controlled in your windows display settings for message
box.<

John, thanks, I would have thought there would be a way to set the msgBox
font from vb but I guess not...

2. len(string) gives you the length in characters including spaces and

punctuation. Converting that to inches can be done if you know the font size
and the screen resolution.<

This only works for non-proportional fonts, right? I guess I could deduce
the actual or the relative length of each character in a proportional font
by--for example--seeing how many characters fit into a tab zone, then
create a lookup table and thus, have the info I need.

Larry




Hi,

1. The font is controlled in your windows display settings for message box.

2. len(string) gives you the length in characters including spaces and
punctuation.
Converting that to inches can be done if you know the font size and the
screen resolution.<


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
Display MsgBox when selecting a sheet Horatio J. Bilge, Jr. Excel Discussion (Misc queries) 3 October 11th 07 03:42 PM
Macro display Msgbox when cells are empty jackie Excel Discussion (Misc queries) 2 May 30th 07 05:48 PM
How to display remaining txt file which overflowed MsgBox display? EagleOne Excel Discussion (Misc queries) 1 November 2nd 06 01:10 PM
VB evaluate a value in a table's column and display msgbox AusTexRich Excel Discussion (Misc queries) 8 October 10th 05 10:23 PM
display cell value in msgbox formatted as % rgarber50 Excel Discussion (Misc queries) 5 July 10th 05 03:27 PM


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

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

About Us

"It's about Microsoft Excel"