Gos-C
Active Member
- Joined
- Apr 11, 2005
- Messages
- 258
- Office Version
- 365
- 2016
- Platform
- Windows
Hi all,
I have the following codes:
I want to have the user select either Online or In-Store, and then invoke the appropriate code: If the user selects Online, use the oRiskBasedMin code; if the user selects In-Store, use the iRiskBasedMin code.
Any help, please?
Thank you,
Gos-C
I have the following codes:
Code:
Sub oRiskBasedMin()
Dim rskMin As Integer
If Range("EI1") <= 299 Then
rskMin = 50
ElseIf Range("EI1") <= 499 Then
rskMin = 75
ElseIf Range("EI1") <= 699 Then
rskMin = 100
ElseIf Range("EI1") <= 4999 Then
rskMin = 120
ElseIf Range("EI1") >= 5000 Then
rskMin = 175
End If
Range("EJ1") = rskMin
End Sub
Sub iRiskBasedMin()
Dim rskMin As Integer
If Range("EI1") <= 299 Then
rskMin = 50
ElseIf Range("EI1") <= 499 Then
rskMin = 100
ElseIf Range("EI1") <= 699 Then
rskMin = 125
ElseIf Range("EI1") <= 999 Then
rskMin = 150
ElseIf Range("EI1") <= 4999 Then
rskMin = 175
ElseIf Range("EI1") >= 5000 Then
rskMin = 225
End If
Range("EJ1") = rskMin
End Sub
I want to have the user select either Online or In-Store, and then invoke the appropriate code: If the user selects Online, use the oRiskBasedMin code; if the user selects In-Store, use the iRiskBasedMin code.
Any help, please?
Thank you,
Gos-C