Multiline messagebox with variables

Hi all,

just wanted to know if it’s possible to create a multiline messagebox containing some variable to display. I tried but wasn’t able to print the var since they are consider in the string.

	Dim bilan As String

	bilan = |Total of all the commands is:  & Cstr(TotalCmd) & "$"

Total of the command won by CCI: & Cstr(TotalCCI) & “$”

Total saved by buying from CCI: & Cstr(TotalLocal - TotalSaved) & “$”|

	Messagebox bilan,0+64+0+0,"Report"

Thanks

Subject: Multiline messagebox with variables

I don’t understand this at all. Can you have multiple lines in a mesagebox? Yes. Use Chr(13) to break them up thus:

Messagebox “This is line one.” & Chr(13) & “This is line 2.” & Chr(13) &_

“This is line 3.”, 0, “Messagebox”

Then you talk about variables. Can you have them in a messagebox? Yes. Thus:

Dim SomeVariable As String

SomeVariable = “Stuff”

Messagebox "Here is line of a message box. Now we’ll include the " &_

“‘SomeVariable’ variable:” & Chr(13) & SomeVariable, 0, “Messagebox”

Or are you asking something else?

Also, why does your code have umpteen zeroes in it? i.e. Messagebox “blah”, 0+64+0+0, … why not just have “64”!?!