Hi All,
I feel like this should be easy but for the life of me I can't work it out!
I have a UserForm with various controls on it including some Comboboxes. When a change is made it triggers the change event and calls a sub in another module, passing the relevant controls as parameters:
N.B. I've simplified it here to just 3 of each control, when there are actually several.
The UpdateTotal2 Sub then checks if there are different currencies listed in the adjacent comboboxes and if they are all the same totals the textbox values and populates a total:Please Login or Register to view this content.
The problem occurs with this line of code:Please Login or Register to view this content.
If I simply use:Please Login or Register to view this content.
Then the code works fine, but that will require me to reiterate the same line of code for every combobox of which there are many (simplified here). I've tried every variation I can think of, msforms.combox, UserForm2.Controls, .name, Val("cbo" & objNo), etc, etc.Please Login or Register to view this content.
Is there a way that I can reference the parameter by string variable?
Thanks, TC
Bookmarks