#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Message Box

Is there a way to incorporate a message box into a
simple "If" statement? I don't know enough to use vbcode
with Excel. I just use the built in functions. I need
to incorporate a message box into one of my "if
statements".
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Message Box


I need
to incorporate a message box into one of my "if
statements".


Well, i do not really understand the point.
do you want to test the result of the button clicked ?

Because if the problem is just to open a box under conditions it's easy:

if (condition) then
msgbox "condition true"
end if

else, the msgbox can be read
result = msgbox ( "yes or no ?", vbYesNo)
msgbox result

and the help of msgbox will give you all the possible values (vbYes or vbNo
for example)



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Message Box

I see what you are saying but I do not go to the code
page to make things happen. I'm not very well versed. I
select a cell and then chose a function. It is from here
that I wanted the message box to be programmed in. Is
this possible?
-----Original Message-----

I need
to incorporate a message box into one of my "if
statements".


Well, i do not really understand the point.
do you want to test the result of the button clicked ?

Because if the problem is just to open a box under

conditions it's easy:

if (condition) then
msgbox "condition true"
end if

else, the msgbox can be read
result = msgbox ( "yes or no ?", vbYesNo)
msgbox result

and the help of msgbox will give you all the possible

values (vbYes or vbNo
for example)



.

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
Pop-up message Otabek Excel Discussion (Misc queries) 1 July 18th 10 12:01 PM
Message Box MR.WJCA New Users to Excel 3 July 2nd 08 11:39 AM
Pop up message esei Excel Discussion (Misc queries) 3 April 4th 05 07:44 PM
changing the message in an error message The Villages DA Excel Worksheet Functions 2 February 18th 05 05:30 PM
Displaying a message in a message box without requiring user to click anything to proceed Android[_2_] Excel Programming 2 June 25th 04 06:44 PM


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