S.H.A.D.O.
Well-known Member
- Joined
- Sep 6, 2005
- Messages
- 1,915
Good morning,
I have the code:
What do I need to add so that if the user clicks Cancel it will exit the Sub please.
I have n dimmed as integer as it is used as a value in the code.
I have tried using things like:
Thanks in advance.
I have the code:
Code:
Dim n As Integer
n = InputBox("Total numbers to be drawn from?", "Combinations")
What do I need to add so that if the user clicks Cancel it will exit the Sub please.
I have n dimmed as integer as it is used as a value in the code.
I have tried using things like:
Code:
If n = 0 Then Exit Sub
If n = "" Then Exit Sub
Thanks in advance.