Msgbox... 2 columns?

hardy1976

Still learning...
Local time
Today, 13:51
Joined
Apr 27, 2006
Messages
200
Hi

I want a message box to present data neatly... using spaces to fudge it just isnt working!

As an example I want to present....
Statement A: 40
Date: 10/02/2012
Season: Winter

as

Statement A: 40
--------Date: 10/02/2012
------eason: Winter

I can use spaces (swapped in for the dashes) however the colons are not lining up!!!!

Regards
H.
 
I was thinking vba - however I am unable to find a way of doing it, pop up form a better option?
 
Howzit

Not exactly a scientifc answer, but this looked ok on mine

Code:
strMess = "STATEMENT A : 1024 " & vbCrLf & vbCrLf
strMess = strMess & Right("                  DATE :", 20) & " 10/02/2012" & vbCrLf & vbCrLf
strMess = strMess & Right("               SEASON :", 17) & " Winter"

 

MsgBox strMess, vbOKOnly, "Testing..."
 
Just create your own form, use a listbox formatted to not look like a listbox and go with it.
 

Users who are viewing this thread

Back
Top Bottom