Hi,
I'm having some trouble with a code I'm currently working on and I would really appreciate some help.
What I'm trying to do is the following:
I have a range (A1:A50), each cell populated by a string value.
The vba code is looping through all the range cells and if a specific value is found it loads up a User Form.
The User Form contains a ComboBox with a list of options and an OK button.
What I'm trying to do is, when the form is loaded I want to choose an option (value) from the combobox and when I hit the ok button, the value I selected in the combobox, to replace the value of the current cell (the one that triggered the form load event)
I find this difficult because I can't manage to get the new value of the combo box (_AfterUpdate) to the module where my code is.
Thanks for the help!
I'm having some trouble with a code I'm currently working on and I would really appreciate some help.
What I'm trying to do is the following:
I have a range (A1:A50), each cell populated by a string value.
The vba code is looping through all the range cells and if a specific value is found it loads up a User Form.
The User Form contains a ComboBox with a list of options and an OK button.
What I'm trying to do is, when the form is loaded I want to choose an option (value) from the combobox and when I hit the ok button, the value I selected in the combobox, to replace the value of the current cell (the one that triggered the form load event)
I find this difficult because I can't manage to get the new value of the combo box (_AfterUpdate) to the module where my code is.
Thanks for the help!