![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 18
|
how do i make it so the writing in a msg box appear in more then 2 lines
like ; line1 line2 and make them align in centre? |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Leiden, The Netherlands
Posts: 68
|
Add a carriage return character (Chr(13)) between the lines:
Msgbox "Line1" & Chr(13) & "Line2". I don't think it's possible to center the lines. You'll need to create a user form to do that. Marc |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Las Vegas Nevada USA
Posts: 240
|
You can center the lines like this.
MsgBox " Line One" & vbcr & " Line Two" Have a great day (Leave spaces between the quote mark and the first word. I did but the post didn't show it) [ This Message was edited by: GeorgeB on 2002-03-21 06:06 ] |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi
Just what paelinck said with alittle more "Message line one here" & chr(13) & _ "Message line two here" & chr(13) & _ " Ect... " & chr(13) Notice Ect... You can work with blank spaces to center your message, but it's a pain. If you know how, create a userform with labels.... |
|
|
|
|
|
#5 |
|
New Member
Join Date: Feb 2002
Posts: 18
|
thx it worked
|
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Mar 2002
Posts: 162
|
Now that you are a regular, you should change your name
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|