Greetings,
I expanded on the code provided here by replacing the "Do...Loop Until" section with a userform. The revised code is Sub UpdateSector.
When Sub UpdateSector is called, it works fine, ie, displays the userform when input is required; updates the combobox selection / input to the relevant field when the commandbutton is clicked; then closes the userform.
However if I add any code after the For-Next statement, say eg Msgbox "Test", the combobox selection/ input is updated to the relevant field only after the Msgbox "Test" is displayed.
Can anyone please help me identify the reason for this behaviour? Below is the entire code (Please bear with me as I do not know which line could be causing the problem) in the standard module
and code in the userform modulePlease Login or Register to view this content.
Let me know if I need to attach a sample file. Many many thanksPlease Login or Register to view this content.
Asha
Bookmarks