msgbox

  • Thread starter Thread starter ranswert
  • Start date Start date
R

ranswert

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
 
try:

Dim msg as string

msg = "costid = " & vbCrLf
msg = msg & "linkno = "
msgbox msg
 
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.)
 
hi
msgbox (" item1" & vbnewline & "item1")

you can also use vblf o

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


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Loop 3
find 2
checkbox 5
intersect 12
check boxes 7
Query within a table 4
Combo box determine subform 1
List found strings on sheet 34

Back
Top