Msgbox w/ multi-lines

  • Thread starter Thread starter jt46
  • Start date Start date
J

jt46

Thanks for all your help.

Question: Using msgbox, is anyway you can add in the "IF" statements
could you give me a little example? Thanks in advance.

Joh
 
I am assuming you want to use one of two (or more) strings in the message box
depening on the outcome of an IF test.

dim strMessage as string

IF <test>
strMessage = "Hello World"
Else
strMessage = "Goodbye World"
End IF

msgbox strMessage

Is this what you're looking for?
 

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

Back
Top