Dear All,
Does anyone know how I can control the use of an InputBox when using VBA? For example, if the end-user enters data into the InputBox and hits the "OK" button, then I want to then call a particular sub-procedure (eg. continue with the application). If the end-user however decides to stop the procedure and hence hits the "Cancel" button, I want to be able to then call another different sub-procedure (ie. close the procdure altogether)? I can do this with Message Boxes but not with the inbuilt InputBox function, as I am not sure if you can define the vbButton controls? Any ideas?
Cheers,
DJH.
Does anyone know how I can control the use of an InputBox when using VBA? For example, if the end-user enters data into the InputBox and hits the "OK" button, then I want to then call a particular sub-procedure (eg. continue with the application). If the end-user however decides to stop the procedure and hence hits the "Cancel" button, I want to be able to then call another different sub-procedure (ie. close the procdure altogether)? I can do this with Message Boxes but not with the inbuilt InputBox function, as I am not sure if you can define the vbButton controls? Any ideas?
Cheers,
DJH.