#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 161
Default msgbox

How do I get a msgbox to have to text stacked instead of in a line?
for example have

'costid = ""
linkno = ""

in the msgbox instead of

cost id = "" linkno = ""

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 333
Default msgbox

try:

Dim msg as string

msg = "costid = " & vbCrLf
msg = msg & "linkno = "
msgbox msg
--

Karen53


"ranswert" wrote:

How do I get a msgbox to have to text stacked instead of in a line?
for example have

'costid = ""
linkno = ""

in the msgbox instead of

cost id = "" linkno = ""

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default msgbox

msgbox "Costid = " & somevariable & vblf & "LinkNo = " & someothervariable

If you're using a Mac, change that vblf to vbNewLine.
(actually vbNewLine will work on either wintel or macs.)


ranswert wrote:

How do I get a msgbox to have to text stacked instead of in a line?
for example have

'costid = ""
linkno = ""

in the msgbox instead of

cost id = "" linkno = ""

Thanks


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default msgbox

hi
msgbox (" item1" & vbnewline & "item1")

you can also use vblf o

regards
FSt1

"ranswert" wrote:

How do I get a msgbox to have to text stacked instead of in a line?
for example have

'costid = ""
linkno = ""

in the msgbox instead of

cost id = "" linkno = ""

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 161
Default msgbox

thanks I'll give those a try

"ranswert" wrote:

How do I get a msgbox to have to text stacked instead of in a line?
for example have

'costid = ""
linkno = ""

in the msgbox instead of

cost id = "" linkno = ""

Thanks



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default msgbox

MsgBox "cost id = """"" & vbLf & "linkno = """""


Gord Dibben MS Excel MVP

On Fri, 15 Feb 2008 13:14:00 -0800, ranswert
wrote:

How do I get a msgbox to have to text stacked instead of in a line?
for example have

'costid = ""
linkno = ""

in the msgbox instead of

cost id = "" linkno = ""

Thanks


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 ceemo[_40_] Excel Programming 3 October 29th 05 07:20 PM
help with Msgbox helmekki[_12_] Excel Programming 1 June 21st 04 05:03 PM
help with msgbox shirley Excel Programming 3 February 10th 04 04:58 AM
Msgbox Bernd[_2_] Excel Programming 0 October 24th 03 10:20 AM
MsgBox redmad Excel Programming 1 August 1st 03 12:18 AM


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