|
-
Feb 11th, 2005, 04:50 PM
#1
Thread Starter
Junior Member
Help with putting 2 lines jof text in a MsgBox(resolved)
Hey,
I know this seems very elementary, but I can't get it to work!
Could someone help me with the technique of making the line of text in a messagebox (or InputBox) appear as two lines?
E.G. Msgbox "You must have the ABC Workbook open before proceeding!"
This would appear in the box as:
You must have the ABC Workbook open before proceeding!
I would like it to appear as:
You must have the ABC Workbook
open before proceeding!
I know I need to use the carriage return, but I don't know how to implement it.
Thank you for your help.
Don
Last edited by Toolman; Feb 11th, 2005 at 05:20 PM.
Don
-
Feb 11th, 2005, 05:01 PM
#2
-
Feb 11th, 2005, 05:12 PM
#3
Thread Starter
Junior Member
Re: Help with putting 2 lines jof text in a MsgBox
Thank you so much for the quick reply. This was reaally bugging me.
Thanks again.
-
Feb 11th, 2005, 05:15 PM
#4
-
Feb 20th, 2005, 07:50 AM
#5
New Member
Re: Help with putting 2 lines jof text in a MsgBox(resolved)
What about Chr(10) fuction. Will it do the purpose?
I use Chr(10), but some times it works and sometimes it says not in the library error. how to use it??
-
Feb 20th, 2005, 05:15 PM
#6
-
Feb 24th, 2005, 06:02 AM
#7
Addicted Member
Re: Help with putting 2 lines jof text in a MsgBox(resolved)
Straight out of the MSDN library:
String expression displayed as the message in the dialog box. The maximum length of prompt is approximately 1024 characters, depending on the width of the characters used. If prompt consists of more than one line, you can separate the lines using a carriage return character (Chr(13)), a linefeed character (Chr(10)), or carriage return–linefeed character combination (Chr(13) & Chr(10)) between each line.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|