开发者

display a 2 row message pop -up vba 6

开发者 https://www.devze.com 2023-02-10 09:26 出处:网络
is there a way to display a 2 or 3 or 4 or n line message开发者_Go百科 on a pop-up window in vba 6 ?

is there a way to display a 2 or 3 or 4 or n line message开发者_Go百科 on a pop-up window in vba 6 ?

For the moment my pop-up window ( calling the MsgBox function) displays the message like this :

       You did something wrong. Please enter valid input.

and I want it to display the message like this

      You did something wrong. 
     Please enter valid input.

can you please provide a code sample?

many thx in advance, radu


Just add a newline in your message:

MsgBox "Text 1" & vbNewLine & "text 2.


Relatively easy request

    iResult = MsgBox("This information is on the first line. " & vbCrLf & "This information is on the 2nd line. " &vbCrLf & _
        "Do you wish to continue?", vbYesNo + vbInformation, "Message Box")
0

精彩评论

暂无评论...
验证码 换一张
取 消