Hi,
This worked exactly as advertised, thank you. This passes the ComboBox details into the Class Module for use as required. The next step of what I needed to do was use the changed clsCombos.ListIndex to update some other TextBoxes in the UserForm.
With my simple brain, I tried to do something like:
This worked (UserForm.TextBox1 updated with the expected data) when I manually initialized the UserForm from within VBA. It DID NOT work when I ran it via the button on the spreadsheet that initializes a new UserForm and displays it (with .show). What seemed to happen was that when the Userform.Controls("TextBox1").text = Worksheets("Sheet1").Range("A:" 2 + clsCombos.ListIndex).value line would run in the Class Module, it would run the initialize script on the UserForm again. Is this expected behaviour? The only difference I can see is the addition of the .show step. Why does that re-initialize the form when I try? Can I do anything about that?
The Googling I've done makes me think another solution is something to do with setting up a Property in the Class Module which can then be "Got" by the UserForm. Am I on the right track? Could you please explain how this works, or give me an example of the code I would need?
Bookmarks