Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
art art is offline
external usenet poster
 
Posts: 2
Default MsgBox carriage return

I can't remember the code to insert a carriage return
within the message line of a MsgBox, so that you can
control how the message appears.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default MsgBox carriage return

"ABCD" & vbNewLine & "EFGH"

or vbCrLF or vbLF or vbCr

--
Regards,
Tom Ogilvy


"Art" wrote in message
...
I can't remember the code to insert a carriage return
within the message line of a MsgBox, so that you can
control how the message appears.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default MsgBox carriage return

Art,

Try something like

MsgBox "First Line" & vbCrLf & "Next Line"


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Art" wrote in message
...
I can't remember the code to insert a carriage return
within the message line of a MsgBox, so that you can
control how the message appears.



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
Carriage return CWH Excel Discussion (Misc queries) 1 March 16th 10 01:54 PM
Carriage Return Problem Don L[_2_] Excel Discussion (Misc queries) 1 March 12th 10 07:04 PM
Getting rid of carriage return in cell James R Excel Discussion (Misc queries) 4 September 8th 08 07:53 PM
Carriage Return Freddo Excel Worksheet Functions 2 March 22nd 07 10:34 AM
Carriage Return Tom Ogilvy Excel Programming 3 August 20th 03 07:22 PM


All times are GMT +1. The time now is 02:56 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"