Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to put a 'return' in Msgbox?

Hi

I would like to know if it's possible to make a message(-box)
consist of 2 lines with the help of some sort of a 'return-function'?
How do I do this? (What's the command?)

I've tried several things but notihng seems to work...

(thanks!)

Pau

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How to put a 'return' in Msgbox?

Paul,

Try something like the following:

MsgBox "Line one" & vbNewLine & "Line two"



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



"HausMaus " wrote in
message ...
Hi

I would like to know if it's possible to make a message(-box)
consist of 2 lines with the help of some sort of a

'return-function'?
How do I do this? (What's the command?)

I've tried several things but notihng seems to work...

(thanks!)

Paul


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default How to put a 'return' in Msgbox?

I'm not exactly sure what you mean by 2 lines
here is a msgbox i use to create 3 lines.
MsgBox ("Macro Complete." & Chr(13) & "Items in blue may
need ordering." & Chr(13) & "Items in Yellow are
discontinued items.")
-----Original Message-----
Hi

I would like to know if it's possible to make a message(-

box)
consist of 2 lines with the help of some sort of

a 'return-function'?
How do I do this? (What's the command?)

I've tried several things but notihng seems to work...

(thanks!)

Paul


---
Message posted from http://www.ExcelForum.com/

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default How to put a 'return' in Msgbox?

Paul

msgbox "This is line one" & vbLf _
& "This is line two" & vbLf _
& "This is line three"

Gord Dibben Excel MVP

On Tue, 10 Aug 2004 13:32:08 -0500, HausMaus
wrote:

Hi

I would like to know if it's possible to make a message(-box)
consist of 2 lines with the help of some sort of a 'return-function'?
How do I do this? (What's the command?)

I've tried several things but notihng seems to work...

(thanks!)

Paul


---
Message posted from http://www.ExcelForum.com/


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
Help with MsgBox... tjb Excel Worksheet Functions 3 December 29th 04 03:43 PM
Msgbox text hard return Jo[_6_] Excel Programming 2 August 5th 04 12:01 AM
MsgBox Randal W. Hozeski Excel Programming 1 January 2nd 04 08:54 PM
MsgBox carriage return Art Excel Programming 2 October 21st 03 03:31 PM
MsgBox Dave Peterson[_3_] Excel Programming 0 July 23rd 03 02:11 AM


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