ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Message Boxes (https://www.excelbanter.com/excel-programming/309741-message-boxes.html)

uplink600[_6_]

Message Boxes
 
Can someone advise me how to add a carriage return to a VB message bo
so I can have

xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx

instead of

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxx

Thanks

V

--
Message posted from http://www.ExcelForum.com


Norman Jones

Message Boxes
 
Hi Uplink,

Try:

Sub Test
MsgBox "xxxxxxxxxxxxxxxx" & vbNewLine _
& "xxxxxxxxxxxxxxxx" & vbNewLine _
& "xxxxxxxxxxxxxxxx" & vbNewLine _
& "xxxxxxxxxxxxxxxx"
End Sub


---
Regards,
Norman



"uplink600 " wrote in message
...
Can someone advise me how to add a carriage return to a VB message box
so I can have

xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx

instead of

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxx

Thanks

VC


---
Message posted from http://www.ExcelForum.com/





All times are GMT +1. The time now is 09:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com