+ Reply to Thread
Results 1 to 3 of 3

Message Box- Wrapping the message text

  1. #1
    Registered User
    Join Date
    12-06-2003
    Posts
    6

    Message Box- Wrapping the message text

    How can I have the text that is displayed in a custom popup message box to display with line breaks as opposed one continous message?

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867
    Try this:

    Sub TwoLines()
    Message = "Line 1" + Chr(13) + "Line 2"
    MsgBox Message
    End Sub

  3. #3
    Registered User
    Join Date
    01-09-2005
    Location
    London, UK
    Posts
    47
    Actually, you could eve skip out the 2nd line, and just write:

    Sub TwoLines()
    MsgBox "Line 1" + Chr(13) + "Line 2"
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1