How to get an enter in a msgbox?
Find bottlenecks in your Excel workbooks
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: How to get an enter in a msgbox?

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Location
    Hengelo
    Posts
    79
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    Hello,

    I want to have the following sentences in a msgbox in exact the same way:

    You have made an error!
    Plaese erase cell A1
    Thank you!

    I get the sentences after each other, how do I insert a 'enter'?!?!
    Best regards,

    Martin J.A. Maatman Oonk

  2. #2
    MrExcel MVP Jay Petrulis's Avatar
    Join Date
    Mar 2002
    Location
    Chicago, IL USA
    Posts
    2,040
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi,

    At least three ways. All return the same thing...

    MsgBox "You have made an error" & vbCr & "Please erase cell Al" & vbCr & "Thank you"

    MsgBox "You have made an error" & Chr(10) & "Please erase cell Al" & Chr(10) & "Thank you"

    MsgBox "You have made an error" & Chr(13) & "Please erase cell Al" & Chr(13) & "Thank you"

  3. #3
    Board Regular
    Join Date
    Feb 2002
    Location
    Hengelo
    Posts
    79
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    On 2002-03-23 08:09, Jay Petrulis wrote:
    Hi,

    At least three ways. All return the same thing...

    MsgBox "You have made an error" & vbCr & "Please erase cell Al" & vbCr & "Thank you"

    MsgBox "You have made an error" & Chr(10) & "Please erase cell Al" & Chr(10) & "Thank you"

    MsgBox "You have made an error" & Chr(13) & "Please erase cell Al" & Chr(13) & "Thank you"
    Thank U!!!
    Best regards,

    Martin J.A. Maatman Oonk

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com