Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Multiple Lines in a MsgBox

Posted on 1998-07-05
6
Medium Priority
?
270 Views
Last Modified: 2010-05-03
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
Comment
Question by:regent
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Author Comment

by:regent
ID: 1464993
Edited text of question
0
 
LVL 3

Accepted Solution

by:
AndreasSchindler earned 200 total points
ID: 1464994
MsgBox "A.A.S. Computer Science Technology - Community " + Chr(13) + " College of the Air Force", vbOKOnly, "Education"
0
 

Author Comment

by:regent
ID: 1464995
Thank you very much.  I didn't understand what the Help Page was saying about the Chr(13) thing.  

tjr
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:regent
ID: 1464996
Thank you very much.  I didn't understand what the Help Page was saying about the Chr(13) thing.  

tjr
0
 

Expert Comment

by:hmt
ID: 1464997
the chr(13) is the same as a carriege return ytou can use chr(13) or a vb constant VBCRLF

0
 

Expert Comment

by:luvbox
ID: 1464998
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

661 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question