Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default MsgBox Question

John,

Use the vbCrLf character to split lines. E.g.,

MsgBox "This is line 1" & vbCrLf & "This is line 2"


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



"john petty" wrote in message
...

Is there any New Line, carriage return or any other
function that can be used to place data in a MsgBox on
separate lines?

Example

this is a test
this was a test
the error is on sheet 2


TIA

John Petty



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default MsgBox Question

Thanks Chip
-----Original Message-----
John,

Use the vbCrLf character to split lines. E.g.,

MsgBox "This is line 1" & vbCrLf & "This is line 2"


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



"john petty" wrote in message
...

Is there any New Line, carriage return or any other
function that can be used to place data in a MsgBox on
separate lines?

Example

this is a test
this was a test
the error is on sheet 2


TIA

John Petty



.

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
msgbox question Wu Excel Discussion (Misc queries) 2 November 9th 08 11:26 AM
msgbox muddan madhu Excel Worksheet Functions 2 April 14th 08 05:06 AM
msgbox peyman Excel Discussion (Misc queries) 5 October 4th 07 09:56 PM
MsgBox bumper338 Excel Discussion (Misc queries) 1 December 22nd 06 11:32 PM
MsgBox Phil Perry Excel Programming 1 July 9th 03 07:38 PM


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