Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / July 2005

Tip: Looking for answers? Try searching our database.

Newbie: msgbox + excel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
crmber@gmail.com - 25 Jul 2005 20:08 GMT
Hi all;

I'm writing a code for a macro in ms excel 2000 and I'm having some
troubles with MsgBox. Here is an example of the code:

Public Function RCL(PLI As Single, RMA As Single)

If RMA > 49 And RMA < 71 Then
RCL = 0.91568 * (1 - Exp(-Exp(-1.8956) * (PLI - 1)))

Else
YesNo = MsgBox("RMA out of range!", vbYesNo)
Select Case YesNo
   Case vbYes
   RCL = 0.75624 * (1 - Exp(-Exp(-1.070025) * (PLI - 1)))
   End

   Case vbNo
   MsgBox "Error"
   End

End Select
End If
End Function

............
After pressing YES/NO I want to MsgBox doesn't show up more than one
time. In the current situation, when I enter a value out of range, the
message appear several times and I have to press OK until I get some
result

Any hint

Thanks
Rick B - 25 Jul 2005 21:16 GMT
This is an ACCESS newsgroup, not an EXCEL newsgroup.

Signature

Rick B

> Hi all;
>
[quoted text clipped - 30 lines]
>
> Thanks
John Vinson - 25 Jul 2005 23:28 GMT
>Hi all;
>
>I'm writing a code for a macro in ms excel 2000

In that case, please scroll down the list of newsgroups to an
appropriate microsoft.public.excel newsgroup. This newsgroup is for a
different program, the database software Microsoft Access.

                 John W. Vinson[MVP]    
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.