Hi guys,
I've a program which creates a list of employee names and deposits this in a variety of forms as they're activated. I don't want to create duplicate code by stating a fixed name in the code, but would rather pass the required userform name to the sub and off it goes...
Currently I click on the 'Generate UserForm button' which then runs the below code
The mdl05_Forms.BuildArrayOfEmployees is another procedure which does the actual list creation and depositing of data into the userform combobox, as below.
I'm getting a mismatch on the Set UserFormName in the first procedure. I've tried all sorts of combinations of setting variables as Objects, Userforms and Strings, not setting the UserFormName, etc, and I just can't seem to get the UserFormName to pass to the BuildArray procedure.
I can't quite see where I'm going wrong -- would appreciate any pointers please.
Cheers, Paul
Bookmarks