Hi there,
If you want to maximise the encapsulation of your UserForm and Class modules, I suggest the following approach:
Within an "overall" module/routine:
Create an instance of your UserForm and display (.Show) it,
Allow the User to enter data in the UserForm and then hide (.Hide) the UserForm,
Retrieve the User data into the "overall" routine via appropriately-defined Properties of the UserForm,
Create an instance of your Class,
Pass the User data from the "overall" routine to the Class via appropriately-defined Properties of the Class.
Taking the above approach allows the UserForm and the Class modules to remain completely "ignorant" of each other - all communication between the two modules is handled by the "overall" routine. This approach allows you to make internal modifications to either of the modules without affecting the other one.
Hope this helps - please let me know how you get on.
Regards,
Greg M
Bookmarks