|
-
Sep 8th, 2000, 11:36 AM
#1
Thread Starter
Hyperactive Member
Is there a way to make a mulilined message box? If so, how?
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
-
Sep 8th, 2000, 11:39 AM
#2
_______
<?>
dim msg as string
msg = "help me out" & vbcrlf
msg = "please help me out" & vbcrlf
msg = msg & vbcrlf
msg = msg & "Sure hope you get it!"
msgbox = msg
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 8th, 2000, 11:46 AM
#3
Hyperactive Member
or you can use the vbNewLine constant, like this
Code:
Private Sub Command1_Click()
MsgBox "This" & vbNewLine & _
"Is" & vbNewLine & _
"A" & vbNewLine & _
"Test!"
End Sub
-
Sep 8th, 2000, 11:56 AM
#4
Thread Starter
Hyperactive Member
This is the code I have:
Code:
Private Sub CommandButton1_Click()
If Range("O2").Text = "When I Am Typing My Name in the Employee Name Box, my name does not appear. What do I do?" Then
Dim msg As String
msg = "- Make sure you have triple clicked your mouse INSIDE the employee name box." & vbCrLf
msg = "- Make sure you are typing your LAST name first." & vbCrLf
msg = "- Make sure you put a comma and a space after your last name." & vbCrLf
msg = "- If your name does not appear as you are typing it, scroll through the list and locate it manually."
MsgBox = vbOK
End If
End Sub
Then it comes up with this:
COMPILE ERROR
Function call on left-hand side of assignment must return Variant or Object.
What am I doing wrong?
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
-
Sep 8th, 2000, 12:15 PM
#5
Lively Member
Msgbox is a function and you cannot assign a value to it.
-
Sep 8th, 2000, 12:25 PM
#6
Frenzied Member
CoreyS, incorrect, the code should be:
Code:
Private Sub CommandButton1_Click()
If Range("O2").Text = "When I Am Typing My Name in the Employee Name Box, my name does not appear. What do I do?" Then
Dim msg As String
msg = "- Make sure you have triple clicked your mouse INSIDE the employee name box." & vbCrLf
msg = msg & "- Make sure you are typing your LAST name first." & vbCrLf
msg = msg & "- Make sure you put a comma and a space after your last name." & vbCrLf
msg = msg & "- If your name does not appear as you are typing it, scroll through the list and locate it manually."
MsgBox msg
End If
End Sub
That should do it!
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|