Hi all,
I stuck with an issue in an input box before an excel file gets opened.
User can optionally enter a number code into a field, which then will be added to the file name.
This works as intended.
Now I wanted to fine tune the whole thing a bit.
I have two buttons "Cancel" (CommandButton1) and "Proceed" (CommandButton2) on my userform
Now I want the cancel button to simply cancel the main macro, end / exit the sub and go back to the origin excel sheet.
This works well.
BUT
The Proceed button which is supposed to continue with the rest of the macro, either with a value in the input field or without, does not do what I want it to do :-)
Either the proceed button also goes back to the origin excelsheet or the cancel button also proceeds with the main macro to browse for a file .
See screenshot of the UserForm, the code behind it and the main macro code
Macro_Cancel_Proceed.JPG
Thanks upfront for your help
Bookmarks