Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
MsgBox Justification
Is there any way to center the prompt in a MsgBox?
|
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
MsgBox Justification
Hi,
I believe you can also use vbTab for spacing... Rocke -- Message posted from http://www.ExcelForum.com |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
MsgBox Justification
MsgBox String(40, " ") & "Hello"
or MsgBox Space(40) & "Hello" |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
issues with justification of bar descriptiors | Excel Discussion (Misc queries) | |||
JUSTIFICATION | Excel Discussion (Misc queries) | |||
justification | Excel Worksheet Functions | |||
Category axis formatting and justification | Charts and Charting in Excel | |||
column justification | Excel Discussion (Misc queries) |