View Full Version : Concatenated Message Box: Homework
ladeda16
04-05-2008, 03:12 PM
I was wondering how do you space the string variable i had put in
MsgBox "Yo," & strCool & "is cool", , "Coolness Chart"
Simon Lloyd
04-05-2008, 03:22 PM
MsgBox "Yo," & strCool & " is cool", , "Coolness Chart"what do you mean space the string variable you just put a space after yo which you did and one before is which i did, other than that i don't know what you want.
ladeda16
04-05-2008, 03:30 PM
Like i want this Yo, Josh is cool.
I want the space after the comma and a space after Josh.
Simon Lloyd
04-05-2008, 03:34 PM
The msgbox as i posted has it, try it....but if i have to!
MsgBox "I want" & " " & strCool & " " & "to understand"
ladeda16
04-05-2008, 03:40 PM
Thank you Simon!!!
Simon Lloyd
04-05-2008, 03:43 PM
if you know your spacing you can use "Hello" & Space(x) & "Again"where x would be the number of spaces.
mdmackillop
04-05-2008, 04:20 PM
You can also use linebreaks and tabs
strCool = "the questioner"
MsgBox "I want " & strCool & " to understand." & vbCr & vbTab & "OK?"
ladeda16
04-05-2008, 04:54 PM
You can also use linebreaks and tabs
strCool = "the questioner"
MsgBox "I want " & strCool & " to understand." & vbCr & vbTab & "OK?"
hmm that looks confusing to me :rotlaugh:
mdmackillop
04-06-2008, 01:20 AM
Homework question
Simon Lloyd
04-06-2008, 01:43 AM
I was thinking the same thing!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.