• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 272
  • Last Modified:

Multiple Lines in a MsgBox

How do I create two, or more, independent lines in a MsgBox (i.e., not word-wrapped)?  For example, I am using this code to display educational background

Private Sub cmdEduc_Click(Index As Integer)
    MsgBox "A.A.S. Computer Science Technology - Community College of the Air Force", vbOKOnly, "Education"
End Sub

I need to display a second line for my Bachelor degree.
0
regent
Asked:
regent
1 Solution
 
regentAuthor Commented:
Edited text of question
0
 
AndreasSchindlerCommented:
MsgBox "A.A.S. Computer Science Technology - Community " + Chr(13) + " College of the Air Force", vbOKOnly, "Education"
0
 
regentAuthor Commented:
Thank you very much.  I didn't understand what the Help Page was saying about the Chr(13) thing.  

tjr
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
regentAuthor Commented:
Thank you very much.  I didn't understand what the Help Page was saying about the Chr(13) thing.  

tjr
0
 
hmtCommented:
the chr(13) is the same as a carriege return ytou can use chr(13) or a vb constant VBCRLF

0
 
luvboxCommented:
Dim nl$,msg$

nl = chr(13) & chr(10)

msg = "Put Your Massege!!! Here " & nl
msg = msg & "Put Some stuff .Here" & nl

MsgBox msg

'I hope that help
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now