Solved

Multiple Lines in a MsgBox

Posted on 1998-07-05
6
264 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
6 Comments
 

Author Comment

by:regent
Comment Utility
Edited text of question
0
 
LVL 3

Accepted Solution

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

Author Comment

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

tjr
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:regent
Comment Utility
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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now