Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default Message Box - Formatting Question

Below is my message box. I want the 2 sentances to be on 2 separate lines.
How to I get a return key inbetween them to do that?


MsgBox ("IF IMPORT WAS SUCCESSFUL click 'MOVE RECORD LIST TO DRIVER LIST'
to finish the import. IF THE RECORDS DID NOT IMPORT CORRECTLY click 'CANCEL
IMPORT' and start over.")



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default Message Box - Formatting Question

Try this. Note that Excel might use 2 lines for either sentence, but it will
definitely start a new line for the second sentence. Note that I removed
the parentheses. HTH Otto
MsgBox "IF IMPORT WAS SUCCESSFUL click 'MOVE RECORD LIST TO DRIVER LIST' to
finish the import." & Chr(13) & _
"IF THE RECORDS DID NOT IMPORT CORRECTLY click 'CANCEL Import ' and
start over."

"Munchkin" wrote in message
...
Below is my message box. I want the 2 sentances to be on 2 separate
lines.
How to I get a return key inbetween them to do that?


MsgBox ("IF IMPORT WAS SUCCESSFUL click 'MOVE RECORD LIST TO DRIVER LIST'
to finish the import. IF THE RECORDS DID NOT IMPORT CORRECTLY click
'CANCEL
IMPORT' and start over.")



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 489
Default Message Box - Formatting Question

I would do it this way. Hope this helps! If so, let me know, click 'YES'
below.

Sub Msg()

Dim Sentence1 As String
Dim Sentence2 As String

Sentence1 = "IF IMPORT WAS SUCCESSFUL click 'MOVE RECORD LIST TO DRIVER
LIST' to finish the import."
Sentence2 = "IF THE RECORDS DID NOT IMPORT CORRECTLY click 'CANCEL
Import ' and start over."

MsgBox Sentence1 & vbNewLine & vbNewLine & Sentence2

End Sub

--
Cheers,
Ryan


"Munchkin" wrote:

Below is my message box. I want the 2 sentances to be on 2 separate lines.
How to I get a return key inbetween them to do that?


MsgBox ("IF IMPORT WAS SUCCESSFUL click 'MOVE RECORD LIST TO DRIVER LIST'
to finish the import. IF THE RECORDS DID NOT IMPORT CORRECTLY click 'CANCEL
IMPORT' and start over.")



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
Message Box Question Brian Excel Programming 10 December 24th 09 07:00 PM
Message box question WH99 Excel Discussion (Misc queries) 5 April 5th 08 12:41 AM
Another cell formatting dependent on cell contents question / message box popup? StargateFan[_3_] Excel Programming 2 January 14th 06 02:47 PM
message box question mark Excel Programming 4 April 8th 04 07:08 PM
Formatting in a Message Box Al Mackay Excel Programming 2 October 21st 03 09:44 AM


All times are GMT +1. The time now is 01:48 PM.

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"