I have a check sub to ensure a value is selected and want to use this to stop the orignal process.
I don't want to include the check in the process and there are other ones that will use it.
Any help appreciated.
Thanks
Private Sub Process1()
call CheckVal
'process
End Sub
Sub CheckVal()
'check the value
If value =1 Then
'do nothing
Else
'stop processing Process1
End If
I don't want to include the check in the process and there are other ones that will use it.
Any help appreciated.
Thanks
Private Sub Process1()
call CheckVal
'process
End Sub
Sub CheckVal()
'check the value
If value =1 Then
'do nothing
Else
'stop processing Process1
End If