Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 160
Default new line in msgbox text

what character(s) do you use to put a new line in msgbox text

msgbox "This is on one line ??? This is on the next"

I expect its easy but have tried lots of things!

Thanks
--
Patrick
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default new line in msgbox text

Hi Patrick,

Try:

MsgBox "This is on one line " & vbNewLine & "This is on the next"

---
Regards,
Norman



"Patrick" wrote in message
...
what character(s) do you use to put a new line in msgbox text

msgbox "This is on one line ??? This is on the next"

I expect its easy but have tried lots of things!

Thanks
--
Patrick



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default new line in msgbox text

Try

msgbox "Text Line 1" & vbcrlf & "Text Line 2"

Cheers
Nigel

"Patrick" wrote in message
...
what character(s) do you use to put a new line in msgbox text

msgbox "This is on one line ??? This is on the next"

I expect its easy but have tried lots of things!

Thanks
--
Patrick



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MsgBox text on several lines mohavv Excel Discussion (Misc queries) 1 November 21st 07 08:17 PM
MsgBox line break Horatio J. Bilge, Jr. Excel Discussion (Misc queries) 2 October 3rd 07 08:34 PM
New Line in MsgBox exceller Excel Programming 4 August 6th 04 10:46 PM
VBA MsgBox() Text gkelle[_9_] Excel Programming 2 April 20th 04 08:32 PM
Wrong text in msgbox Ed[_9_] Excel Programming 0 August 11th 03 03:21 PM


All times are GMT +1. The time now is 08:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"