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

Is there any way to center the prompt in a MsgBox?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default MsgBox Justification

AFAIK, the only way is to add spaces to the beginning of the prompt.

You'll have to tweak the values:

MsgBox "Hello"
MsgBox String(40, " ") & "Hello"



In article ,
"Bill Oertell" wrote:

Is there any way to center the prompt in a MsgBox?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default MsgBox Justification

Hi,

I believe you can also use vbTab for spacing...

Rocke

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default MsgBox Justification

MsgBox String(40, " ") & "Hello"

or MsgBox Space(40) & "Hello"


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default MsgBox Justification

or MsgBox Space(40) & "Hello"

Oops, just tried it and it would in fact make the text string right
justified. Should be something like:

MsgBox Space(20) & "Hello" & Space(20)






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default MsgBox Justification

Thanks. At least that's better than experimenting with: MsgBox(" Hello")

"Shatin" wrote in message
...
or MsgBox Space(40) & "Hello"


Oops, just tried it and it would in fact make the text string right
justified. Should be something like:

MsgBox Space(20) & "Hello" & Space(20)






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
issues with justification of bar descriptiors Em Excel Discussion (Misc queries) 0 July 22nd 09 12:53 PM
JUSTIFICATION GARY Excel Discussion (Misc queries) 1 September 27th 08 05:01 AM
justification Treva B Excel Worksheet Functions 2 May 10th 07 01:47 PM
Category axis formatting and justification Brian Charts and Charting in Excel 2 February 7th 07 12:54 AM
column justification Bob Excel Discussion (Misc queries) 3 August 25th 06 01:36 PM


All times are GMT +1. The time now is 05:44 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"