Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default 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


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 text on several lines mohavv Excel Discussion (Misc queries) 1 November 21st 07 08:17 PM
Msgbox w/ multi-lines jt46 Excel Programming 11 October 11th 04 08:55 AM
MsgBox With Multiple Lines? ianripping[_49_] Excel Programming 2 April 20th 04 11:41 AM
Using different lines in an input- or msgbox Syrus the Virus[_16_] Excel Programming 3 March 2nd 04 12:35 PM
Multiple lines in MsgBox NJF Excel Programming 3 January 13th 04 01:50 PM


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