LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 121
Default Multiple lines desired in Msgbox

I learn something from you every time I read your posts Tom, you go above
and beyond ... pls keep going!!!!!!!!!
"Tom Ogilvy" wrote in message
...
So, I am asking if there are systems which REQUIRE chr(10) to add a line,


In a msgbox where Excel is supported, I doubt it. All these work:
(comment out all but the one to test)

Sub aa()
a = Chr(10)
a = Chr(13)
a = vbLf ' chr(10)
a = vbCrLf ' chr(13) & chr(10)
a = vbCr ' chr(13)
a = vbNewLine
MsgBox "abcdefg" & a & "hijklmnop"
End Sub

I am not aware of a Unix version of Excel, so I think it only supports
Windows and MAC. There was a version that supported a RISC processor
(forget which one), but that was back around the Excel 5 time frame I
believe.

However, for DOS (and I assume windows) at least, the line termination
character is defined to be CrLf. I know Unix only uses one, I believe
chr(10) and MAC only uses one (chr(13)).

for cross system support, I would imagine most modern software does not
strictly require both CrLf for text files.

--
Regards,
Tom Ogilvy


"William Benson" wrote in message
...
Nick, my point is that I only, ever, use Chr(13) and it always pops me

down
to the next line. Every time.

So, I am asking if there are systems which REQUIRE chr(10) to add a line,
because I have found no Windows apps ever do.

In other words, VBCRLF and Chr(13) do the same thing in a message box, a
list box, etc.

From my experience anyway.

"Nick Hebb" wrote in message
oups.com...
On Windows VbCrLf is equivalent to VbNewLine, so every time that you've
used either one you've implicitly used chr(10) - line feed.

I imagine that the other systems that use only chr(13) - carraige
return - would primarily be Macs.







 
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 w/ multi-lines jt46 Excel Programming 11 October 11th 04 08:55 AM
MsgBox With Multiple Lines? ianripping[_49_] Excel Programming 2 April 20th 04 11:41 AM
Using different lines in an input- or msgbox Syrus the Virus[_16_] Excel Programming 3 March 2nd 04 12:35 PM
Multiple lines in MsgBox NJF Excel Programming 3 January 13th 04 01:50 PM


All times are GMT +1. The time now is 05:31 PM.

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

About Us

"It's about Microsoft Excel"