Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default New Line in MsgBox

Anyone know how to start a new line in a MsgBox. For example, if I want to
have paragraphs in a Msgbox how do I do so?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default New Line in MsgBox

Hi
try
msgbox "text1" & vblf & "text2" & vblf & "text3"

--
Regards
Frank Kabel
Frankfurt, Germany


exceller wrote:
Anyone know how to start a new line in a MsgBox. For example, if I
want to have paragraphs in a Msgbox how do I do so?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default New Line in MsgBox

Simply use VbCr to break your lines. Eg:

MsgBox "Hello" & vbcr & "How are you?"
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default New Line in MsgBox

Rather than tie this to one platform or another, I'd recommend

vbNewLine

instead of

vbLF

since it works the same on both WinXL and MacXL.

In article ,
"Frank Kabel" wrote:

try
msgbox "text1" & vblf & "text2" & vblf & "text3"

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default New Line in MsgBox

Hi JE
thanks for the info (as I unfortunately had never used a MAC before
never would have noticed this)

--
Regards
Frank Kabel
Frankfurt, Germany


JE McGimpsey wrote:
Rather than tie this to one platform or another, I'd recommend

vbNewLine

instead of

vbLF

since it works the same on both WinXL and MacXL.

In article ,
"Frank Kabel" wrote:

try
msgbox "text1" & vblf & "text2" & vblf & "text3"


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
How to convert a dotted line to a solid line in a line graph Sharlz Charts and Charting in Excel 1 January 14th 09 04:51 AM
MsgBox line break Horatio J. Bilge, Jr. Excel Discussion (Misc queries) 2 October 3rd 07 08:34 PM
msgbox peyman Excel Discussion (Misc queries) 2 September 29th 07 08:21 PM
coloring overy other line without doing so line by line gen Excel Worksheet Functions 5 April 1st 05 10:38 PM
MsgBox Rob van Gelder[_4_] Excel Programming 0 April 7th 04 11:58 PM


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