KB-23789: MessageBox on multiple lines.

Question:

How can I set up a text to be displayed on the bottom line of a MsgBox?

Solution:

To do so, you must concatenate the Chr(13) character to the texts. For example:

Example of script being executed at a button’s Click event:

Sub CommandButton12_Click()
    MsgBox “text” & Chr(13) & “next line”   
End Sub

Thus, the text “Next Line” is set on the MsgBox’s bottom line.

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *