Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Yes No box no working properly
I have a section of code which brings up the meassage box
but it doesnt matter what i select it always shows Results saved, Can someone show me how to fix this so that if i select no it exits the sub and shows Results NOT saved Response = MsgBox("Do All results have a Formulation Number", vbYesNo) ??If Response = "" Then MsgBox ("Results NOT saved") ResultsDatabase1 ResultsDatabase2 MsgBox ("Results saved") Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Yes No box no working properly
This is what you need:
Response = MsgBox("Do All results have a Formulation Number", vbYesNo) If Response = vbNo Then MsgBox ("Results NOT saved") Else ResultsDatabase1 ResultsDatabase2 MsgBox ("Results saved") End If Regards, The Code Cage Team www.thecodecage.com/forumz "Miree" wrote: I have a section of code which brings up the meassage box but it doesnt matter what i select it always shows Results saved, Can someone show me how to fix this so that if i select no it exits the sub and shows Results NOT saved Response = MsgBox("Do All results have a Formulation Number", vbYesNo) ??If Response = "" Then MsgBox ("Results NOT saved") ResultsDatabase1 ResultsDatabase2 MsgBox ("Results saved") Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Yes No box no working properly
"Miree" сообщил/сообщила в новостях следующее: ...
I have a section of code which brings up the meassage box but it doesnt matter what i select it always shows Results saved, Can someone show me how to fix this so that if i select no it exits the sub and shows Results NOT saved Response = MsgBox("Do All results have a Formulation Number", vbYesNo) ??If Response = "" Then MsgBox ("Results NOT saved") ResultsDatabase1 ResultsDatabase2 MsgBox ("Results saved") if (Responce=vbYes) then resultsDatabase1: resultsDatabase2 endif |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Track Changes Not Working Properly | Excel Worksheet Functions | |||
But not working properly | Excel Discussion (Misc queries) | |||
Vlookup not working properly | Excel Worksheet Functions | |||
For Each Loop not working properly | Excel Programming | |||
(xlDown) not working properly! | Excel Programming |