Hello JAL_0110,
Welcome to the Forum!
This can be done easily using a technique known as "Subclassing". This allows for objects to be grouped together and share common event routines.
Before you proceed, have your workbook open and the VB Editor activated. To activate the VB Editor, press the keys ALT+F11.
Adding the Class Module and Code- To activate the VB Editor, press the keys ALT+F11.
- Copy the Claas Code below using Ctrl+C.
- Add a new Class Module to your VBA project. Press the keys [b]ALT+I[/] to display the Insert menu. Press C key.
- Paste the code into the module using Ctrl+V.
Class Module Code
Additional UserForm Code
Add the code below to the very top of your UserForm...
Add the code below to the UserForm_Initialize() Event Module...
If you have any problems, post your workbook and I will fix any problems you are having.
Bookmarks