I have a function that does a multitude of things, it has an Input Box that returns a value, but if the user selects cancel for the input, the function should exit, if the input box returns a value, the function should continue to run.
In the code below my function keeps exiting at this line:
In the code below my function keeps exiting at this line:
Code:
If (varInput = InputBox("Enter quote number for new order:")) = False Then
'Debug.Print
Exit Function
End If