Solved

Multiple Lines in a MsgBox

Posted on 1998-07-05
6
269 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 50 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
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 

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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month7 days, 17 hours left to enroll

617 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