MsgBox Justification

  • Thread starter Thread starter Bill Oertell
  • Start date Start date
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"
 
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)
 
Back
Top