ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Msgbox w/ multi-lines (https://www.excelbanter.com/excel-programming/313117-msgbox-w-multi-lines.html)

jt46[_2_]

Msgbox w/ multi-lines
 

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

--
jt4
-----------------------------------------------------------------------
jt46's Profile: http://www.excelforum.com/member.php...fo&userid=1515
View this thread: http://www.excelforum.com/showthread.php?threadid=26786


Marcotte A

Msgbox w/ multi-lines
 
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?


"jt46" wrote:


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.

John


--
jt46
------------------------------------------------------------------------
jt46's Profile: http://www.excelforum.com/member.php...o&userid=15154
View this thread: http://www.excelforum.com/showthread...hreadid=267861




All times are GMT +1. The time now is 02:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com