Results 1 to 4 of 4

Thread: Second line in a MsgBox

  1. #1
    Geek_Guest
    Guest

    Second line in a MsgBox

    Question asked by visitor sp

    How can we go to second line in a MsgBox and print a statement, after printing the 1st line


  2. #2
    Expert Member
    Join Date
    Nov 2006
    Answers
    518

    Re: Second line in a MsgBox

    This question is very confusing.

    Following is the answer for what I understand.

    MSGBOX("First Line...." & chr(13) & "Second Line....", "Title...";

    Hope it works.

    Lack of WILL POWER has caused more failure than
    lack of INTELLIGENCE or ABILITY.

    -sutnarcha-

  3. #3
    Contributing Member
    Join Date
    Feb 2007
    Answers
    48

    Re: Second line in a MsgBox

    Hi,

    Rather using chr(13), it is always recommended to use vbcrlf. i.e.,

    MSGBOX("First Line...." & vbcrlf & "Second Line....", "Title...";

    Regards,
    Ganesh SM


  4. #4
    Expert Member
    Join Date
    Apr 2007
    Answers
    147

    Re: Second line in a MsgBox

    You can do either of these 3....

    Msgbox "I am " & VBcrlf & "User"
    Msgbox "I am " & chr(13) & "User"
    Msgbox "I am " & chr(10) & "User"


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact